From d5e793a35c2a080aa1aac53c55db57362d2cc48c Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Tue, 15 Aug 2023 15:32:16 +0900 Subject: [PATCH] Fix: Fix order --- sub-chart/src/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sub-chart/src/index.ts b/sub-chart/src/index.ts index 636589e..2aa2c69 100644 --- a/sub-chart/src/index.ts +++ b/sub-chart/src/index.ts @@ -22,6 +22,11 @@ dotenv.config({ path: ".env" }) dotenv.config({ path: "../.env" }) const sentryEnabled = !!process.env.SENTRY_DSN_SUB_CHART + +const gzip = promisify(gzipBase) + +const app = Express() + if (sentryEnabled) { sentry.init({ dsn: process.env.SENTRY_DSN_SUB_CHART, @@ -29,10 +34,6 @@ if (sentryEnabled) { }) } -const gzip = promisify(gzipBase) - -const app = Express() - const files = new Map() const BACKEND_HOST = process.env.BACKEND_HOST!