Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 03:49:19 +08:00
v3-admin-vite/.env.staging

12 lines
568 B
Plaintext
Raw Normal View History

# 自定义的环境变量(命名必须以 VITE_ 开头)
2022-08-26 21:46:26 +08:00
2022-10-27 18:20:57 +08:00
## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径)
2023-07-21 15:50:23 +08:00
# VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1'
VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1'
2022-08-26 21:46:26 +08:00
2022-10-27 18:20:57 +08:00
## 路由模式 hash 或 html5
2022-08-19 23:04:49 +08:00
VITE_ROUTER_HISTORY = 'hash'
2022-08-26 21:46:26 +08:00
2022-10-27 18:20:57 +08:00
## 打包路径(就是网站前缀,例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下,就需要填写 /v3-admin-vite/
2022-08-19 23:04:49 +08:00
VITE_PUBLIC_PATH = '/v3-admin-vite/'