feat: add commands to Nixpacks build to copy static assets and Next.js static files for standalone output.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
[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]
|
||||
nixPkgs = ["nodejs_22", "npm-9_x", "openssl"]
|
||||
|
||||
Reference in New Issue
Block a user