feat: support build and runtime ENV configuration

This commit is contained in:
cnluminous committed 2026-10-27 12:04:49 +08:00
1 parent f88225469b
commit 20df300f3a
7 files changed
+186 -13

No files matched your search

+2 -1
View File
@@ -8,7 +8,8 @@
"build": "vite build",
"preview": "vite preview",
"config:runtime": "node scripts/write-runtime-config.js",
"start": "npm run config:runtime && vite preview --host 0.0.0.0"
"start": "npm run config:runtime && vite preview --host 0.0.0.0",
"test": "node --test"
},
"devDependencies": {
"vite": "^8.3.4"