fix: resolve CORS blocking Vite dev server (add 5173 to defaults, add proxy)

This commit is contained in:
2026-04-09 19:10:10 -04:00
parent 34a57d6f09
commit 3362325479
3 changed files with 10 additions and 2 deletions

View File

@@ -4,4 +4,12 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
})