feat: 环境配置纳入版本管理并更新文档

- 将 .env 和 .env.local 纳入版本管理
- 更新 .gitignore,移除对环境文件的忽略
- 在 README.md 中添加详细的数据库配置和启动说明
- 同步 server/.env 与项目根目录配置
- 修复后端数据库连接问题
This commit is contained in:
selfrelease
2026-06-22 16:00:16 +08:00
parent 97feb42afb
commit 56401ec7ee
22 changed files with 1945 additions and 16 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
const API_BASE =
typeof window === "undefined"
? process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080"
: "";
: process.env.NEXT_PUBLIC_API_URL || "";
// 流式请求基础URL(运行时判断,不依赖编译时变量):
// - 服务器端(SSR):直连后端