-
-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# 生产环境的环境变量(命名必须以 VITE_ 开头) | ||
|
||
## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径) | ||
VITE_BASE_URL = https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1 | ||
VITE_BASE_URL = https://apifoxmock.com/m1/2930465-2145633-default/api/v1 | ||
|
||
## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下就需要填写 /v3-admin-vite/) | ||
VITE_PUBLIC_PATH = /v3-admin-vite/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# 预发布环境的环境变量(命名必须以 VITE_ 开头) | ||
|
||
## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径) | ||
VITE_BASE_URL = https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1 | ||
VITE_BASE_URL = https://apifoxmock.com/m1/2930465-2145633-default/api/v1 | ||
|
||
## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/ 域名下就需要填写 /) | ||
VITE_PUBLIC_PATH = / |