feat: 添加生产环境部署和监控配置
- 新增生产环境部署脚本和文档 - 添加监控系统配置(Alertmanager, Prometheus, Grafana) - 更新e2e测试用例以适配新环境 - 添加.env.production配置文件 - 优化Sentry初始化逻辑为动态加载 - 新增全局设置脚本以支持不同环境
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Resend API Configuration
|
||||
RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
|
||||
# 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
|
||||
|
||||
# NextAuth Configuration
|
||||
NEXTAUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
NEXTAUTH_URL=https://www.novalon.cn
|
||||
|
||||
# Admin User
|
||||
ADMIN_EMAIL=admin@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
|
||||
Reference in New Issue
Block a user