🔨 Proxy backend server with vite

This commit is contained in:
2022-10-03 11:32:17 +02:00
parent ae4249f1f0
commit 394d86a13a

View File

@ -52,4 +52,17 @@ export default defineConfig({
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
port: 3001,
proxy: {
"/api": {
target: "http://localhost:3000",
changeOrigin: true,
},
"/login": {
target: "http://localhost:3000",
changeOrigin: true,
},
},
},
});