端口修改
This commit is contained in:
@@ -26,7 +26,7 @@ export default defineConfig(({ mode }) => ({
|
||||
shared: {
|
||||
type: 'module',
|
||||
name: 'shared',
|
||||
entry: 'http://localhost:5000/remoteEntry.js'
|
||||
entry: 'http://localhost:7000/remoteEntry.js'
|
||||
}
|
||||
},
|
||||
shared: {
|
||||
@@ -51,7 +51,7 @@ export default defineConfig(({ mode }) => ({
|
||||
},
|
||||
|
||||
server: {
|
||||
port: 5003,
|
||||
port: 7003,
|
||||
host: true,
|
||||
cors: true,
|
||||
open: '/workcase/', // 开发时自动打开到 /workcase/ 路径
|
||||
@@ -63,7 +63,7 @@ export default defineConfig(({ mode }) => ({
|
||||
},
|
||||
// 代理共享模块请求到 shared 服务
|
||||
'/shared': {
|
||||
target: 'http://localhost:5000',
|
||||
target: 'http://localhost:7000',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user