提交
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = {
|
||||
assetsDir: 'static',
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
|
||||
|
||||
// public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号
|
||||
port: '8080',
|
||||
open: true,
|
||||
@@ -77,7 +77,16 @@ module.exports = {
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': ''
|
||||
}
|
||||
},
|
||||
compress: false, // 💡 关键:禁止压缩,否则 SSE 流会被攒着不发
|
||||
|
||||
// 增加超时时间,防止长连接被代理提前掐断
|
||||
proxyTimeout: 10 * 60 * 1000,
|
||||
timeout: 10 * 60 * 1000
|
||||
},
|
||||
'/public': {
|
||||
target: 'https://submission.tmrjournals.com/',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user