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!