From 5ee32c9e5b4a74c13f47217634ce595728b67cfc Mon Sep 17 00:00:00 2001 From: =?utf8?q?wang=2Eyu=28=E7=8E=8B=E7=91=9C=29?= Date: Mon, 24 Aug 2026 13:17:23 +0800 Subject: [PATCH] =?utf8?q?=E5=B0=86=20.env.production=20=E7=A7=BB=E8=87=B3?= =?utf8?q?=20frontend/=EF=BC=88=E4=BF=AE=E5=A4=8D=20VITE=5FBEIAN=20?= =?utf8?q?=E6=9C=AA=E6=B3=A8=E5=85=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Vite 构建在 frontend/ 下进行,默认只从 frontend/ 读取 .env*,原文件放在 仓库根导致 VITE_BEIAN 未被注入、页脚一直显示"待备案" - 用 git mv 将 .env.production 移到 frontend/,Vite 默认即可读取,无需改 vite.config;以后 git pull 自动带文件,云端无需手动复制 - 本地重建已确认备案号注入产物 --- .env.production => frontend/.env.production | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .env.production => frontend/.env.production (100%) diff --git a/.env.production b/frontend/.env.production similarity index 100% rename from .env.production rename to frontend/.env.production -- 2.43.0