From e4af24fabac6f578a7a3957de69b1d7ca53e952e Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 14 Nov 2022 23:26:46 +0100 Subject: [PATCH] Fix state detection --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index 40b7300..969a1aa 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -34,7 +34,7 @@ import apiRouter2 from '../api/v2/index.js' const router = express.Router() -if (process.env.ENABLE_MAIN_MODULE === 'true') { +if ((process.env.ENABLE_MAIN_MODULE ?? 'true') === 'true') { router.use('/0', apiRouter0) } router.use('/1', apiRouter1)