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; + } };