diff --git a/pkgs/api/_deploy.ts b/pkgs/api/_deploy.ts index 0853da4..34d39fb 100644 --- a/pkgs/api/_deploy.ts +++ b/pkgs/api/_deploy.ts @@ -163,11 +163,9 @@ export const _ = { await deploy.init(); const deploys = fs.readdirSync(dir(`/app/web/deploy`)); - if (g.main.process) { + if (g.mode === "prod") { setTimeout(() => { - if (g.main.process) { - g.main.process.kill(); - } + process.exit(); }, 500); }