Use Vite proxy to pocketbase backend during development
This commit is contained in:
parent
1a6d6ea786
commit
e4ff93d562
1 changed files with 12 additions and 0 deletions
|
|
@ -8,4 +8,16 @@ export default defineConfig({
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [{ find: "@", replacement: "/src" }],
|
alias: [{ find: "@", replacement: "/src" }],
|
||||||
},
|
},
|
||||||
|
server: {
|
||||||
|
proxy: {
|
||||||
|
"/api": {
|
||||||
|
target: "http://localhost:8090",
|
||||||
|
changeOrigin: true,
|
||||||
|
},
|
||||||
|
"/_": {
|
||||||
|
target: "http://localhost:8090",
|
||||||
|
changeOrigin: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue