cors setup and dev server proxy

This commit is contained in:
Will H
2024-07-05 16:25:00 +12:00
parent 7383673636
commit 5ace7616d0
3 changed files with 12 additions and 13 deletions

View File

@ -19,5 +19,13 @@ export default defineConfig(({ mode }) => {
"@": "/src",
},
},
server: {
proxy: {
"/api": {
target: APP_URL,
changeOrigin: true,
},
},
},
};
});