From 2afbd30852f1c9073f4ac83254d27b772fc8a097 Mon Sep 17 00:00:00 2001 From: SirTenzin <49116958+SirTenzin@users.noreply.github.com> Date: Tue, 24 Jun 2025 01:13:57 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20svix=20to=20env?= =?UTF-8?q?=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add svix api keys to the env var checks on startup --- server/.env.example | 8 +++++++- server/src/utils/initUtils.ts | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/server/.env.example b/server/.env.example index 844ff5dbd..300db251f 100644 --- a/server/.env.example +++ b/server/.env.example @@ -54,4 +54,10 @@ RESEND_DOMAIN= # This is entirely optional for users who know what they are doing. LOGTAIL_SOURCE_TOKEN= -LOGTAIL_INGESTING_HOST= \ No newline at end of file +LOGTAIL_INGESTING_HOST= + +# SVIX + +# This is entirely optional for users who know what they are doing. + +SVIX_API_KEY= \ No newline at end of file diff --git a/server/src/utils/initUtils.ts b/server/src/utils/initUtils.ts index 47faec521..fb58c11f7 100644 --- a/server/src/utils/initUtils.ts +++ b/server/src/utils/initUtils.ts @@ -42,4 +42,9 @@ export const checkEnvVars = () => { `SUPABASE_URL or SUPABASE_SERVICE_KEY is not set, some actions will be skipped`, ); } + + if (!process.env.SVIX_API_KEY) { + logger.warn(`SVIX_API_KEY is not set, some actions will be skipped`); + return; + } };