Update dev and start scripts to source environment variables

This commit is contained in:
luoyangwei
2026-06-13 18:33:22 +08:00
parent 2b860d201e
commit e69e178d44
+2 -2
View File
@@ -3,9 +3,9 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "set -a && source .env.local && set +a && next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "set -a && source .env.production && set +a && next start",
"lint": "eslint", "lint": "eslint",
"lint:fix": "eslint --fix", "lint:fix": "eslint --fix",
"sync:gallery": "node scripts/sync-gallery-photos.mjs", "sync:gallery": "node scripts/sync-gallery-photos.mjs",