Swap @astrojs/vercel adapter for @astrojs/node standalone (Vercel adapter emits serverless functions; Coolify runs a long-lived Node container). Add web/nixpacks.toml with explicit install/build/start phases. Fix web/pnpm-workspace.yaml: scaffolded without the packages field, which broke pnpm install on any environment that validates workspaces strictly (this was the root cause of the original Coolify build error).
11 lines
194 B
TOML
11 lines
194 B
TOML
[phases.setup]
|
|
nixPkgs = ["nodejs_22", "pnpm"]
|
|
|
|
[phases.install]
|
|
cmds = ["pnpm install --frozen-lockfile"]
|
|
|
|
[phases.build]
|
|
cmds = ["pnpm run build"]
|
|
|
|
[start]
|
|
cmd = "node ./dist/server/entry.mjs" |