This commit is contained in:
CFOU
2026-09-14 20:50:19 +02:00
commit 3091fb4020
135 changed files with 10262 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
// Proxied so the browser sees /api and the backend as the same
// origin (localhost:5173) in dev -- the refresh-token cookie then
// "just works" as same-site without touching CORS/SameSite at all.
'/api': 'http://localhost:8080',
'/uploads': 'http://localhost:8080',
},
},
})