feat: setup proxy and x-forwarded-for header

This commit is contained in:
wancat committed 2023-10-31 00:15:39 +08:00
1 parent c10b05c401
commit 3b9ea9ea50
3 files changed
+5

No files matched your search

+2
View File
@@ -9,11 +9,13 @@ export default defineConfig({
'/api': {
target: process.env.API_TARGET || 'http://localhost:3000',
changeOrigin: false,
xfwd: true,
},
'/socket.io': {
target: process.env.API_TARGET || 'ws://localhost:3000',
changeOrigin: false,
ws: true,
xfwd: true,
},
},
},