Selaa lähdekoodia

Force production mode on build

Andrea Franceschini 1 vuosi sitten
vanhempi
commit
c3f74127de
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  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",