Only start ClientRouter for production

This commit is contained in:
advplyr 2023-05-01 17:12:17 -05:00
parent 634167aea6
commit 57994ffb5b
3 changed files with 9 additions and 6 deletions

View file

@ -139,7 +139,9 @@ class Server {
async start() {
Logger.info('=== Starting Server ===')
await this.init()
this.clientRouter.start()
if (process.env.NODE_ENV !== 'development') {
this.clientRouter.start()
}
const app = express()
const router = express.Router()