Added a proxy to the vite.config.js
This commit is contained in:
@ -11,5 +11,13 @@ export default defineConfig({
|
||||
"@states": path.resolve(__dirname, "./src/states"),
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
}
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:8025",
|
||||
rewrite: (path) => path.replace(/^\/api/, "")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user