增加信息
This commit is contained in:
@@ -55,15 +55,7 @@ export default defineConfig({
|
||||
* @doc 代理介绍 https://umijs.org/docs/guides/proxy
|
||||
* @doc 代理配置 https://umijs.org/docs/api/config#proxy
|
||||
*/
|
||||
proxy: proxy['pro'],
|
||||
define: {
|
||||
"process.env": {
|
||||
API_URL: "https://shopapi.jitucdz.com",
|
||||
WS_URL: "ws://shopapi.jitucdz.com",
|
||||
STATIC_URL: "https://shopapi.jitucdz.com",
|
||||
WEMAP_KEY: "ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X",
|
||||
},
|
||||
},
|
||||
proxy: proxy[REACT_APP_ENV],
|
||||
/**
|
||||
* @name 快速热更新配置
|
||||
* @description 一个不错的热更新组件,更新时可以保留 state
|
||||
|
||||
@@ -37,10 +37,10 @@ export default {
|
||||
},
|
||||
},
|
||||
dev: {
|
||||
'/admin/': {
|
||||
'/api/': {
|
||||
target: 'http://192.168.1.32:1002',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
},
|
||||
},
|
||||
pre: {
|
||||
@@ -50,18 +50,4 @@ export default {
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
prod: {
|
||||
'/admin/': {
|
||||
target: 'https://iadminapi.zhongshuai2023.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
pro: {
|
||||
'/admin/': {
|
||||
target: 'https://iadminapi.zhongshuai2023.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user