Преглед изворни кода

Force production mode on build

Andrea Franceschini пре 1 година
родитељ
комит
c3f74127de
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      package.json

+ 2 - 3
package.json

@@ -1,11 +1,10 @@
 {
   "private": true,
   "scripts": {
-    "build": "nuxi build",
+    "build": "NODE_ENV=production nuxi build",
     "dev": "nuxi dev",
-    "generate": "nuxi generate",
     "preview": "nuxi preview",
-    "deploy": "nuxi build && rsync -avPz --delete -e ssh .output/* vps:/var/server/htdocs/andreafranceschini.org/www/ && ssh vps docker restart -t 0 aforg"
+    "deploy": "NODE_ENV=production nuxi build && rsync -avPz --delete -e ssh .output/* vps:/var/server/htdocs/andreafranceschini.org/www/ && ssh vps docker restart -t 0 aforg"
   },
   "dependencies": {
     "@fortawesome/fontawesome-svg-core": "^6.2.0",