chore: update vite dev server proxy setting (#2222)

fix vite proxy setting to keep the request headers
This commit is contained in:
Athurg Gooth 2023-09-15 21:49:34 +08:00 committed by GitHub
parent 137c8f8a07
commit 13c7871d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,19 +17,19 @@ export default defineConfig({
proxy: {
"^/api": {
target: devProxyServer,
changeOrigin: true,
xfwd: true,
},
"^/o/": {
target: devProxyServer,
changeOrigin: true,
xfwd: true,
},
"^/u/.+/rss.xml": {
target: devProxyServer,
changeOrigin: true,
xfwd: true,
},
"/explore/rss.xml": {
target: devProxyServer,
changeOrigin: true,
xfwd: true,
},
},
},