-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy path.env.development
More file actions
45 lines (37 loc) · 1.06 KB
/
Copy path.env.development
File metadata and controls
45 lines (37 loc) · 1.06 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 是否开启mock。《灯灯》项目为了演示vben的静态页面数据和后台的动态数据,特意开启mock。二次开发建议关闭。
VITE_USE_MOCK=true
# 资源公共路径
VITE_PUBLIC_PATH=/
# 后端是单体模式还是微服务模式 可选项: cloud boot
VITE_GLOB_MODE=boot
# 本地启动时,代理地址
VITE_PROXY=`{
"cloud": [{
"proxyKey": "/api",
"rewriteBefore": "/api",
"rewriteAfter": "/api",
"target": "http://localhost:18760"
}],
"boot": [{
"proxyKey": "/api/gateway",
"rewriteBefore": "/api/gateway",
"rewriteAfter": "/gateway",
"target": "http://localhost:18760"
},{
"proxyKey": "/api",
"rewriteBefore": "/api/[A-Za-z0-9]+",
"rewriteAfter": "",
"target": "http://localhost:18760"
}]
}`
# 是否删除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