From 63af976671f0fc0ed5cf5b87ac0735597b2243af Mon Sep 17 00:00:00 2001 From: saiminh Date: Mon, 16 Feb 2026 11:05:15 +0100 Subject: [PATCH] change brevo api env --- src/routes/contact/+page.server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/contact/+page.server.ts b/src/routes/contact/+page.server.ts index 9365fb1..763e386 100644 --- a/src/routes/contact/+page.server.ts +++ b/src/routes/contact/+page.server.ts @@ -1,7 +1,8 @@ import type { Actions } from './$types'; -import { BREVO_API_KEY } from '$env/static/private'; +import { env } from '$env/dynamic/private'; import { fail, redirect } from '@sveltejs/kit'; +const BREVO_API_KEY = env.BREVO_API_KEY; const BREVO_ENDPOINT = 'https://api.brevo.com/v3/smtp/email'; const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;