feat: add commands to Nixpacks build to copy static assets and Next.js static files for standalone output.

This commit is contained in:
2026-03-02 14:34:27 +01:00
parent 897e7a126b
commit ce1ec9030d

View File

@@ -1,5 +1,10 @@
[phases.build] [phases.build]
cmds = ["npm run build"] cmds = [
"npm run build",
"mkdir -p .next/standalone/public",
"cp -r public/* .next/standalone/public/ || true",
"cp -r .next/static .next/standalone/.next/static"
]
[phases.setup] [phases.setup]
nixPkgs = ["nodejs_22", "npm-9_x", "openssl"] nixPkgs = ["nodejs_22", "npm-9_x", "openssl"]