feat: 增加 env 配置

This commit is contained in:
Edan's Win11 2025-06-03 21:24:56 +08:00
parent 476ebc26b8
commit e09ce3ec51
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# 开发环境配置
NODE_ENV=development
# API 基础地址
VITE_API_BASE_URL=http://localhost:5409
# 应用端口
VITE_PORT=5173
# 是否开启 mock
VITE_USE_MOCK=true

View File

@ -0,0 +1,8 @@
# 生产环境配置
NODE_ENV=production
# API 基础地址
VITE_API_BASE_URL=http://localhost:5409
# 是否开启 mock
VITE_USE_MOCK=false