We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0824e60 commit 0be0633Copy full SHA for 0be0633
package.json
@@ -6,7 +6,7 @@
6
"build": "node generateBuildId.js && next build",
7
"dev": "next dev",
8
"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",
+ "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",
10
"prepare": "husky",
11
"prettier": "prettier --write \"app/**/*.{js,jsx,ts,tsx}\"",
12
"prod:serve": "pm2 stop artbot && pm2 delete artbot && pm2 start ecosystem.config.js --env production --only artbot && pm2 save",
0 commit comments