Track .env files in git for personal deployment sync.

Allow VITE_AMAP_KEY and related config to follow the repo; only .env.local remains ignored.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
xiaojibeier
2026-07-06 17:18:31 +08:00
parent 0deccf70a8
commit dd59b3aab5
4 changed files with 21 additions and 4 deletions
+4 -4
View File
@@ -7,10 +7,10 @@ dist-ssr/
build/
*.tsbuildinfo
# ── 环境变量(含密钥,勿提交)──────────────────────
.env
.env.*
!.env.example
# ── 环境变量 ───────────────────────────────────────
# 个人项目:.env 随仓库同步;仅忽略本地临时覆盖
.env.local
.env*.local
# ── 日志 ──────────────────────────────────────────
logs/