]> acesimba.cloud Git - StationAIDemo.git/commitdiff
将 .env.production 移至 frontend/(修复 VITE_BEIAN 未注入)
authorwang.yu(王瑜) <wang.yu@advantech.com>
Mon, 24 Aug 2026 05:17:23 +0000 (13:17 +0800)
committerwang.yu(王瑜) <wang.yu@advantech.com>
Mon, 24 Aug 2026 05:17:23 +0000 (13:17 +0800)
- Vite 构建在 frontend/ 下进行,默认只从 frontend/ 读取 .env*,原文件放在
  仓库根导致 VITE_BEIAN 未被注入、页脚一直显示"待备案"
- 用 git mv 将 .env.production 移到 frontend/,Vite 默认即可读取,无需改
  vite.config;以后 git pull 自动带文件,云端无需手动复制
- 本地重建已确认备案号注入产物

.env.production [deleted file]
frontend/.env.production [new file with mode: 0644]

diff --git a/.env.production b/.env.production
deleted file mode 100644 (file)
index 8a037aa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-VITE_BEIAN=陕ICP备2026022239号-2
diff --git a/frontend/.env.production b/frontend/.env.production
new file mode 100644 (file)
index 0000000..8a037aa
--- /dev/null
@@ -0,0 +1 @@
+VITE_BEIAN=陕ICP备2026022239号-2