chore: build
ci-api / test (push) Successful in 25m3s
ci-web / test (push) Successful in 15m11s

This commit is contained in:
Xor290
2026-08-24 18:46:44 +02:00
parent 8df0841686
commit cb48bb2b70
8 changed files with 116 additions and 97 deletions
+11
View File
@@ -4,6 +4,17 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
// Fait passer l'API par la même origine que le SPA en dev (localhost:5173)
// au lieu d'un appel cross-origin direct vers localhost:8080 — nécessaire
// depuis le passage à l'authentification 100% cookie HttpOnly (plus de
// fallback Authorization: Bearer, voir lib/api.ts) : un cookie
// SameSite=Lax n'est pas envoyé sur un fetch() cross-site.
proxy: {
'/api': { target: 'http://localhost:8080', changeOrigin: true },
'/healthz': { target: 'http://localhost:8080', changeOrigin: true },
},
},
test: {
globals: true,
environment: 'jsdom',