chore: 移除敏感配置文件并优化.gitignore
- 从git追踪中移除.env.production(包含真实API密钥和密码) - 在.gitignore中明确添加.env.production规则 - 清理.gitignore中的重复规则(.bak, .backup, .tmp, .temp, .trae/) - 提升安全性,防止敏感配置泄露
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
# Resend API Configuration
|
||||
RESEND_API_KEY=re_72PzbVrr_DiwTnB1ZDT7TyqCsgLoAfKfU
|
||||
|
||||
# Company Email (接收联系表单邮件的邮箱)
|
||||
COMPANY_EMAIL=contact@novalon.cn
|
||||
|
||||
# Next.js Configuration
|
||||
NEXT_PUBLIC_SITE_URL=https://www.novalon.cn
|
||||
|
||||
# Sentry Error Monitoring (Production)
|
||||
NEXT_PUBLIC_SENTRY_DSN=https://xxxxxxxxxxxxx@o4507xxxxx.ingest.sentry.io/xxxxxxxxxxxxx
|
||||
|
||||
# Google Analytics (可选 - 用于访问统计)
|
||||
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-LGTLCR15KM
|
||||
|
||||
# NextAuth Configuration
|
||||
NEXTAUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
NEXTAUTH_URL=https://www.novalon.cn
|
||||
|
||||
# Admin User
|
||||
ADMIN_EMAIL=contact@novalon.cn
|
||||
ADMIN_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
|
||||
# Database
|
||||
DATABASE_URL=file:./data/prod.db
|
||||
|
||||
# File Upload
|
||||
UPLOAD_DIR=./uploads
|
||||
MAX_FILE_SIZE=10485760
|
||||
|
||||
# Environment
|
||||
NODE_ENV=production
|
||||
+2
-8
@@ -160,6 +160,7 @@ next-env.d.ts
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.production
|
||||
.env.*.local
|
||||
*.env
|
||||
|
||||
@@ -272,8 +273,6 @@ dist-ssr/
|
||||
# Temporary files
|
||||
*.tmp
|
||||
*.temp
|
||||
*.bak
|
||||
*.backup
|
||||
*.swp
|
||||
*~
|
||||
.npm
|
||||
@@ -345,9 +344,6 @@ e2e/storage-state.json
|
||||
trace.zip
|
||||
network-logs/
|
||||
|
||||
#trae
|
||||
.trae/
|
||||
|
||||
# Deprecated test frameworks
|
||||
e2e-tests/
|
||||
test-framework/
|
||||
@@ -357,8 +353,6 @@ reports/e2e/
|
||||
reports/performance/
|
||||
reports/coverage/
|
||||
|
||||
# Temporary files
|
||||
*.tmp
|
||||
*.temp
|
||||
# OS files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
Reference in New Issue
Block a user