2023-12-07 20:43:58 +08:00
|
|
|
|
# 开发环境:本地只启动前端项目,依赖开发环境(后端、APP)
|
2024-04-30 21:33:35 +08:00
|
|
|
|
NODE_ENV=production
|
2023-02-11 00:44:00 +08:00
|
|
|
|
|
2024-08-15 13:11:18 +08:00
|
|
|
|
VITE_DEV=false
|
2023-02-11 00:44:00 +08:00
|
|
|
|
|
|
|
|
|
# 请求路径
|
2024-08-15 13:11:18 +08:00
|
|
|
|
VITE_BASE_URL='http://localhost:48080'
|
2023-02-11 00:44:00 +08:00
|
|
|
|
|
2024-02-04 19:41:48 +08:00
|
|
|
|
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
|
|
|
|
|
VITE_UPLOAD_TYPE=server
|
2023-02-11 00:44:00 +08:00
|
|
|
|
# 上传路径
|
2024-08-15 13:11:18 +08:00
|
|
|
|
VITE_UPLOAD_URL='http://114.55.171.231:48080/admin-api/infra/file/upload'
|
2023-02-11 00:44:00 +08:00
|
|
|
|
|
|
|
|
|
# 接口地址
|
|
|
|
|
VITE_API_URL=/admin-api
|
|
|
|
|
|
|
|
|
|
# 是否删除debugger
|
2023-12-07 20:43:58 +08:00
|
|
|
|
VITE_DROP_DEBUGGER=false
|
2023-02-11 00:44:00 +08:00
|
|
|
|
|
|
|
|
|
# 是否删除console.log
|
|
|
|
|
VITE_DROP_CONSOLE=false
|
|
|
|
|
|
|
|
|
|
# 是否sourcemap
|
2023-12-07 20:43:58 +08:00
|
|
|
|
VITE_SOURCEMAP=true
|
|
|
|
|
|
|
|
|
|
# 打包路径
|
|
|
|
|
VITE_BASE_PATH=/
|
2023-02-11 00:44:00 +08:00
|
|
|
|
|
|
|
|
|
# 输出路径
|
2023-08-04 21:44:44 +08:00
|
|
|
|
VITE_OUT_DIR=dist
|
2023-12-07 19:58:52 +08:00
|
|
|
|
|
|
|
|
|
# 商城H5会员端域名
|
2023-12-07 20:43:58 +08:00
|
|
|
|
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
|
|
|
|
|
|
|
|
|
|
# 验证码的开关
|
2024-08-15 13:11:18 +08:00
|
|
|
|
VITE_APP_CAPTCHA_ENABLE=false
|