From 83f0f380c5d03115f31706c60997edc840d5f98e Mon Sep 17 00:00:00 2001 From: Mars <3361409208a@gmail.com> Date: Fri, 12 Jun 2026 10:30:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=E6=9C=AC=E5=9C=B0=E5=AF=86?= =?UTF-8?q?=E9=92=A5=20env=20=E6=96=87=E4=BB=B6=E5=8A=A0=E5=85=A5=20gitign?= =?UTF-8?q?ore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 忽略 apps/api/.env 与 .env.docker,并从仓库移除已跟踪的 API 本地配置。 Co-authored-by: Cursor --- .gitignore | 6 ++++++ apps/api/.env | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 apps/api/.env diff --git a/.gitignore b/.gitignore index 007e23a..9fe7cd8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,12 @@ release/ coverage/ .turbo/ *.tsbuildinfo + +# 本地环境变量(含密钥,勿提交;示例见 .env.example / .env.docker.example) +.env.docker +apps/api/.env +.cursor/ + # 勿将 tsc 编译产物提交到 player/src(会导致 Vite 加载过期 .js) apps/player/src/**/*.js !apps/player/src/router/index.js diff --git a/apps/api/.env b/apps/api/.env deleted file mode 100644 index d484c66..0000000 --- a/apps/api/.env +++ /dev/null @@ -1,8 +0,0 @@ -DATABASE_URL=postgresql://thebet365:thebet365@localhost:5432/thebet365 -REDIS_URL=redis://localhost:6379 -JWT_SECRET=dev-secret-change-in-production -JWT_PLAYER_EXPIRES=24h -JWT_ADMIN_EXPIRES=2h -JWT_AGENT_EXPIRES=8h -PORT=3000 -NODE_ENV=development