实现 API Key 负载均衡,修复 WebSocket session 失效问题

This commit is contained in:
RockYang
2023-03-22 13:51:27 +08:00
parent 97acfe57e7
commit 20bdf12180
10 changed files with 118 additions and 42 deletions

View File

@@ -17,10 +17,10 @@ module.exports = defineConfig({
},
publicPath: process.env.NODE_ENV === 'production'
? '/web'
? '/chat'
: '/',
outputDir: 'dist',
outputDir: '../dist',
crossorigin: "anonymous",
devServer: {
allowedHosts: ['127.0.0.1:5678'],