feat: Enable bullmq dashboard with environment variable

This commit is contained in:
Faruk AYDIN
2022-05-13 11:40:52 +02:00
parent d1b46df78a
commit a5538a07f1
3 changed files with 9 additions and 4 deletions

View File

@@ -15,13 +15,13 @@ import {
} from './helpers/create-bull-board-handler';
import injectBullBoardHandler from './helpers/inject-bull-board-handler';
if (appConfig.appEnv === 'development') {
if (appConfig.enableBullMQDashboard) {
createBullBoardHandler(serverAdapter);
}
const app = express();
if (appConfig.appEnv === 'development') {
if (appConfig.enableBullMQDashboard) {
injectBullBoardHandler(app, serverAdapter);
}