import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/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. export default defineConfig({ plugins: [react(), tailwindcss()], base: './', server: { port: 5174 }, });