Skip to content

Commit

Permalink
build: 📦️ switch mock address
Browse files Browse the repository at this point in the history
  • Loading branch information
HalseySpicy committed Jul 19, 2023
1 parent 37e243c commit 0a2d343
Show file tree
Hide file tree
Showing 4 changed files with 7,561 additions and 6,000 deletions.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ VITE_PWA = false
VITE_API_URL = /api

# 开发环境跨域代理,支持配置多个
VITE_PROXY = [["/api","https://mock.mengxuegu.com/mock/629d727e6163854a32e8307e"]]
# VITE_PROXY = [["/api","https://www.fastmock.site/mock/f81e8333c1a9276214bcdbc170d9e0a0"]]
# VITE_PROXY = [["/api","https://mock.mengxuegu.com/mock/629d727e6163854a32e8307e"]]
VITE_PROXY = [["/api","https://www.fastmock.site/mock/f81e8333c1a9276214bcdbc170d9e0a0"]]
# VITE_PROXY = [["/api-easymock","https://mock.mengxuegu.com"],["/api-fastmock","https://www.fastmock.site"]]
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ VITE_DROP_CONSOLE = true
VITE_PWA = true

# 线上环境接口地址
VITE_API_URL = "https://mock.mengxuegu.com/mock/629d727e6163854a32e8307e"
VITE_API_URL = "https://www.fastmock.site/mock/f81e8333c1a9276214bcdbc170d9e0a0"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
"stylelint-config-standard-scss": "^10.0.0",
"typescript": "^5.1.6",
"unplugin-vue-setup-extend-plus": "^1.0.0",
"vite": "^4.4.2",
"vite": "^4.4.4",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-pwa": "^0.16.4",
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^1.8.4"
"vue-tsc": "^1.8.5"
},
"engines": {
"node": ">=16.0.0"
Expand Down
Loading

0 comments on commit 0a2d343

Please sign in to comment.