mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 09:02:49 +03:00
chore: update vite dev server proxy setting (#2222)
fix vite proxy setting to keep the request headers
This commit is contained in:
parent
137c8f8a07
commit
13c7871d20
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user