Use start script for artifact production

This commit is contained in:
hwhung
2026-05-07 20:18:06 +08:00
parent ae82bc893b
commit 9e5ed168cc
+2 -1
View File
@@ -19,8 +19,9 @@ run = "pnpm --filter proxy-artifact run prod"
[services.production] [services.production]
build = [ "pnpm", "--filter", "proxy-artifact", "run", "build:fast" ] build = [ "pnpm", "--filter", "proxy-artifact", "run", "build:fast" ]
run = [ "sh", "-c", "NODE_ENV=production node --enable-source-maps dist/index.mjs" ] run = [ "pnpm", "--filter", "proxy-artifact", "run", "start" ]
[services.env] [services.env]
PORT = "26002" PORT = "26002"
BASE_PATH = "/" BASE_PATH = "/"
NODE_ENV = "production"