Updated the vite.config.js proxy

This commit is contained in:
Mathias committed 2023-11-13 11:51:49 +01:00
1 parent ca98a4ac4d
commit 990429925f
1 file changed
+5 -1
+5 -1
View File
@@ -11,7 +11,11 @@ export default defineConfig({
}, },
server: { server: {
proxy: { proxy: {
"/api": "http://localhost:8671/" "/api": {
target: "http://localhost:8671",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
}
} }
} }
}); });