From f9245fb1121601be3c73d59afb3152bda296dbc5 Mon Sep 17 00:00:00 2001 From: Daniel Emery Date: Mon, 25 Sep 2023 22:04:38 +0200 Subject: [PATCH] #35 Use doppler config instead of node env for sentry environment --- src/config.ts | 2 ++ src/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 60d9a27..18d0997 100644 --- a/src/config.ts +++ b/src/config.ts @@ -16,6 +16,7 @@ interface QuizlordConfig { FILE_ACCESS_BASE_URL: string; QUIZLORD_VERSION: string; SENTRY_DSN: string; + DOPPLER_CONFIG: string; } const schema = Joi.object() @@ -35,6 +36,7 @@ const schema = Joi.object() FILE_ACCESS_BASE_URL: Joi.string().required(), QUIZLORD_VERSION: Joi.string().default('development'), SENTRY_DSN: Joi.string().required(), + DOPPLER_CONFIG: Joi.string().required(), }) .required() .unknown(true); diff --git a/src/index.ts b/src/index.ts index b4f7acc..af77400 100644 --- a/src/index.ts +++ b/src/index.ts @@ -83,7 +83,7 @@ async function initialise() { ], tracesSampleRate: 1.0, profilesSampleRate: 1.0, - environment: config.NODE_ENV, + environment: config.DOPPLER_CONFIG, }); await server.start();