数据库配置

This commit is contained in:
zhonghua 2026-03-02 17:43:19 +08:00
parent 163d0cd8ce
commit ec5b2022cc
3 changed files with 9 additions and 3 deletions

4
.gitignore vendored
View File

@ -17,8 +17,8 @@ target/
*.sqlite3
# 环境变量(含敏感信息,不提交)
.env
.env.local
#.env
#.env.local
# .env.production 只含 API 地址,允许提交
# .env.production

View File

@ -0,0 +1,6 @@
DATABASE_URL="file:./dev.db"
NODE_ENV=development
PORT=3000
JWT_SECRET="your-super-secret-jwt-key"
JWT_EXPIRES_IN="7d"
FRONTEND_URL="http://localhost:5173"

View File

@ -1,4 +1,4 @@
DATABASE_URL="file:/Users/retirado/ccProgram/reading-platform-backend/dev.db"
DATABASE_URL="file:./dev.db"
NODE_ENV=development
PORT=3000
JWT_SECRET="your-super-secret-jwt-key"