|
|
|
@ -117,19 +117,19 @@ export default defineConfig({ |
|
|
|
server: { |
|
|
|
host: '0.0.0.0', |
|
|
|
port: 8088, |
|
|
|
// proxy: {
|
|
|
|
proxy: { |
|
|
|
// http://43.137.2.78:8085/server/question/list
|
|
|
|
// '/api': {
|
|
|
|
// target: 'https://nest-api.buqiyuan.site/api/',
|
|
|
|
// // target: 'http://localhost:7001',
|
|
|
|
// target: 'http://43.137.2.78:8085',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api/, ''),
|
|
|
|
// },
|
|
|
|
// '/ws-api': {
|
|
|
|
// target: 'wss://nest-api.buqiyuan.site',
|
|
|
|
// // target: 'http://localhost:7002',
|
|
|
|
// changeOrigin: true, //是否允许跨域
|
|
|
|
// ws: true,
|
|
|
|
// },
|
|
|
|
// rewrite: (path) => path.replace(/^\/api/, '/server'),
|
|
|
|
// },
|
|
|
|
'/server': { |
|
|
|
// target: 'http://43.137.2.78:8085',
|
|
|
|
target: 'http://192.168.2.64:8089', |
|
|
|
changeOrigin: true, |
|
|
|
rewrite: (path) => path.replace(/^\/server/, ''), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
|