Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-19 02:19:20 +08:00

perf: 优化环境变量

This commit is contained in:
pany 2024-11-21 20:01:28 +08:00
parent 0fe2d1fbcf
commit 14fca80a90
4 changed files with 3 additions and 9 deletions

3
.env
View File

@ -2,3 +2,6 @@
## 项目标题
VITE_APP_TITLE = V3 Admin Vite
## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash

View File

@ -3,8 +3,5 @@
## 后端接口地址(如果解决跨域问题采用反向代理就只需写相对路径)
VITE_BASE_URL = /api/v1
## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash
## 开发环境域名和静态资源公共路径(一般 / 或 ./ 都可以)
VITE_PUBLIC_PATH = /

View File

@ -3,8 +3,5 @@
## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径)
VITE_BASE_URL = https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1
## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash
## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下就需要填写 /v3-admin-vite/
VITE_PUBLIC_PATH = /v3-admin-vite/

View File

@ -3,8 +3,5 @@
## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径)
VITE_BASE_URL = https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1
## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash
## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/ 域名下就需要填写 /
VITE_PUBLIC_PATH = /