Skip to content

Commit

Permalink
perf: 优化环境变量
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Nov 21, 2024
1 parent 0fe2d1f commit 14fca80
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

## 项目标题
VITE_APP_TITLE = V3 Admin Vite

## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash
3 changes: 0 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
## 后端接口地址(如果解决跨域问题采用反向代理就只需写相对路径)
VITE_BASE_URL = /api/v1

## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash

## 开发环境域名和静态资源公共路径(一般 / 或 ./ 都可以)
VITE_PUBLIC_PATH = /
3 changes: 0 additions & 3 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -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/
3 changes: 0 additions & 3 deletions .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -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 = /

0 comments on commit 14fca80

Please sign in to comment.