Skip to content

Commit 0be0633

Browse files
committed
fix: update postbuild script
1 parent 0824e60 commit 0be0633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "node generateBuildId.js && next build",
77
"dev": "next dev",
88
"lint": "next lint",
9-
"postbuild": "cp -R public .next/standalone && cp -R .next/static .next/standalone/.next && cp ecosystem.config.js .next/standalone && cp .env .next/standalone",
9+
"postbuild": "cp -R public .next/standalone && cp -R .next/static .next/standalone/.next && cp ecosystem.config.js .next/standalone && [ -f .env ] && cp .env .next/standalone",
1010
"prepare": "husky",
1111
"prettier": "prettier --write \"app/**/*.{js,jsx,ts,tsx}\"",
1212
"prod:serve": "pm2 stop artbot && pm2 delete artbot && pm2 start ecosystem.config.js --env production --only artbot && pm2 save",

0 commit comments

Comments
 (0)