Updated the vite.config.js proxy

This commit is contained in:
Mathias Wagner 2023-11-13 11:51:49 +01:00
parent ca98a4ac4d
commit 990429925f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -11,7 +11,11 @@ export default defineConfig({
},
server: {
proxy: {
"/api": "http://localhost:8671/"
"/api": {
target: "http://localhost:8671",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
}
}
}
});