gateway tomcat去除
This commit is contained in:
@@ -41,7 +41,8 @@ export default defineConfig(({ mode }) => ({
|
||||
define: {
|
||||
__VUE_OPTIONS_API__: true,
|
||||
__VUE_PROD_DEVTOOLS__: true,
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: true
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: true,
|
||||
global: 'globalThis'
|
||||
},
|
||||
|
||||
resolve: {
|
||||
@@ -64,6 +65,7 @@ export default defineConfig(({ mode }) => ({
|
||||
'/api': {
|
||||
target: 'http://localhost:8180',
|
||||
changeOrigin: true,
|
||||
ws: true, // 启用 WebSocket 代理
|
||||
rewrite: (path: string) => path.replace(/^\/api/, '')
|
||||
},
|
||||
// 代理共享模块请求到 shared 服务
|
||||
|
||||
Reference in New Issue
Block a user