fix: disable bullboard without unsetting the env #273
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user