add of proxy for local test

This commit is contained in:
Giovanni-Josserand 2025-08-30 00:05:29 +02:00
parent 05cfa6d5e0
commit 097592128c

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,
},
}
}
})