import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' // Relative base: emitted asset refs become "./assets/…", so the the // server writes at placement decides where they resolve. One build therefore // serves any mount path. Do NOT reintroduce a build-time base — the artifact is // promoted between environments unchanged and would stop being placeable. // // This is also why the fonts and the logo live under src/ and not public/: // Vite rewrites bundled asset URLs to be relative, while a public/ file // referenced as "/fonts/…" stays absolute and 404s under a mount path. export default defineConfig({ plugins: [react()], base: './', server: { port: 5175 }, })