From 3b19c8410fedbb6a5b62f971a117d4d8cf5ea47d Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 21 Aug 2023 15:31:35 +0100 Subject: [PATCH] Comments. --- packages/server/src/app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts index 1f38448efb..4b501718a8 100644 --- a/packages/server/src/app.ts +++ b/packages/server/src/app.ts @@ -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")