提交1 bmad搭建与项目启动 - ok
This commit is contained in:
56
viteEnv/.env.production
Normal file
56
viteEnv/.env.production
Normal file
@@ -0,0 +1,56 @@
|
||||
# 生产环境配置
|
||||
# Production Environment Configuration
|
||||
|
||||
# 应用基础配置
|
||||
VITE_APP_TITLE=智慧农业生产管理系统
|
||||
VITE_APP_VERSION=1.0.0
|
||||
VITE_APP_DESCRIPTION=Smart Agriculture Production Management System
|
||||
|
||||
# 环境标识
|
||||
VITE_NODE_ENV=production
|
||||
VITE_APP_ENV=production
|
||||
|
||||
# API配置
|
||||
VITE_API_BASE_URL=https://api.smart-crop.com
|
||||
VITE_API_TIMEOUT=20000
|
||||
VITE_API_RETRY_TIMES=3
|
||||
|
||||
# 应用配置
|
||||
VITE_APP_PORT=80
|
||||
VITE_APP_HOST=0.0.0.0
|
||||
|
||||
# 功能开关
|
||||
VITE_ENABLE_MOCK=false
|
||||
VITE_ENABLE_DEVTOOLS=false
|
||||
VITE_ENABLE_CONSOLE_LOG=false
|
||||
VITE_ENABLE_API_LOG=false
|
||||
|
||||
# 地图配置
|
||||
VITE_MAP_KEY=your_map_api_key_prod
|
||||
VITE_MAP_TYPE=gaode
|
||||
|
||||
# 文件上传配置
|
||||
VITE_UPLOAD_URL=https://api.smart-crop.com/common/upload
|
||||
VITE_UPLOAD_MAX_SIZE=10485760
|
||||
VITE_UPLOAD_ACCEPT=image/*,application/pdf,.doc,.docx,.xls,.xlsx
|
||||
|
||||
# WebSocket配置
|
||||
VITE_WS_URL=wss://api.smart-crop.com/ws
|
||||
VITE_WS_RECONNECT=true
|
||||
VITE_WS_RECONNECT_INTERVAL=5000
|
||||
|
||||
# 缓存配置
|
||||
VITE_CACHE_PREFIX=crop_x_prod_
|
||||
VITE_CACHE_EXPIRE=86400000
|
||||
|
||||
# 第三方服务配置
|
||||
VITE_SENTRY_DSN=https://your-sentry-dsn-prod
|
||||
VITE_GOOGLE_ANALYTICS_ID=GA_PROD_MEASUREMENT_ID
|
||||
|
||||
# 安全配置
|
||||
VITE_ENABLE_CSP=true
|
||||
VITE_CSP_REPORT_URI=https://api.smart-crop.com/csp-report
|
||||
|
||||
# 性能配置
|
||||
VITE_ENABLE_BUNDLE_ANALYZER=false
|
||||
VITE_ENABLE_SOURCE_MAP=false
|
||||
Reference in New Issue
Block a user