fix: disable bullboard without unsetting the env #273

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-20 06:16:57 +01:00
parent 7cd5f84c58
commit 9a54daae55

View File

@@ -30,7 +30,10 @@ async function start() {
const PORT = Number.parseInt(process.env.WORKER_PORT || '3000', 10); const PORT = Number.parseInt(process.env.WORKER_PORT || '3000', 10);
const app = express(); const app = express();
if (process.env.DISABLE_BULLBOARD === undefined) { if (
process.env.DISABLE_BULLBOARD !== '1' &&
process.env.DISABLE_BULLBOARD !== 'true'
) {
const serverAdapter = new ExpressAdapter(); const serverAdapter = new ExpressAdapter();
serverAdapter.setBasePath('/'); serverAdapter.setBasePath('/');
createBullBoard({ createBullBoard({