build: fix how we pass environment from build scripts

This commit is contained in:
maia arson crimew 2023-06-08 18:09:18 +02:00
parent a738b1b62f
commit 7cbae07e1d

View file

@ -3,8 +3,8 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"scripts": { "scripts": {
"build": "ELEVENTY_ENV=prod rm -rf www && eleventy", "build": "rm -rf www && ELEVENTY_ENV=prod eleventy",
"serve": "ELEVENTY_ENV=dev rm -rf www && eleventy --serve", "serve": "rm -rf www && ELEVENTY_ENV=dev eleventy --serve",
"update": "git pull && npm i && npm run build" "update": "git pull && npm i && npm run build"
}, },
"dependencies": { "dependencies": {