-
Notifications
You must be signed in to change notification settings - Fork 167
/
.env.development
29 lines (22 loc) · 1.18 KB
/
.env.development
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 是否开启mock。《灯灯》项目为了演示vben的静态页面数据和后台的动态数据,特意开启mock。二次开发建议关闭。
VITE_USE_MOCK=true
# 资源公共路径
VITE_PUBLIC_PATH=/
# 本地开发代理,可以解决跨域及多地址代理 api代理到后台网关, basic-api代理到mock
# 本地启动 lamp-cloud
# VITE_PROXY=[["/api","http://localhost:18760"],["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
# 远程启动 lamp-cloud
VITE_PROXY=[["/api","https://none.tangyh.top"],["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
# 本地启动 lamp-boot
# VITE_PROXY=[[["/api/gateway", "/api/gateway", "/gateway"],"http://localhost:18760"], [["/api", "/api/[A-Za-z0-9]+", ""],"http://localhost:18760"],["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
# 是否删除Console.log
VITE_DROP_CONSOLE=false
# 接口地址
# 如果没有跨域问题,直接在这里配置即可
VITE_GLOB_API_URL=/api
# 文件上传接口 可选
VITE_GLOB_UPLOAD_URL=/base/anyone/file/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=
# 打包是否开启pwa功能
VITE_USE_PWA = false