1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

Comments.

This commit is contained in:
mike12345567 2023-08-21 15:31:35 +01:00
parent 91e16f7b69
commit 3b19c8410f

View file

@ -20,11 +20,13 @@ import { startup } from "./startup"
let app: Koa, server: Server
async function start() {
// if API disabled, could run automations instead
if (apiEnabled()) {
const koa = createKoaApp()
app = koa.app
server = koa.server
}
// startup includes automation runner - if enabled
await startup(app, server)
if (env.isProd()) {
env._set("NODE_ENV", "production")