Kaynağa Gözat

Force production mode on build

Andrea Franceschini 1 yıl önce
ebeveyn
işleme
c3f74127de
1 değiştirilmiş dosya ile 2 ekleme ve 3 silme
  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",