OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: disable bullboard without unsetting the env #273
Carl-Gerhard Lindesvärd9a54daae552c
diff --git a/apps/worker/src/index.ts b/apps/worker/src/index.tsindex f0aa6f56c..c7ecc22c3 100644--- a/apps/worker/src/index.ts+++ b/apps/worker/src/index.ts@@ -30,7 +30,10 @@ async function start() {const PORT = Number.parseInt(process.env.WORKER_PORT || '3000', 10);const app = express();- if (process.env.DISABLE_BULLBOARD === undefined) {+ if (+ process.env.DISABLE_BULLBOARD !== '1' &&+ process.env.DISABLE_BULLBOARD !== 'true'+ ) {const serverAdapter = new ExpressAdapter();serverAdapter.setBasePath('/');createBullBoard({