fix([2fd88f42]): implement vite proxy for robust API calls and add logging

This commit is contained in:
2026-02-04 12:13:45 +00:00
parent 20dd56b5cf
commit 5d3caf6258
4 changed files with 18 additions and 2 deletions

View File

@@ -4,4 +4,13 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://backend:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
}
}
})