import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; // https://vite.dev/config/ // Preview is served under /lead-to-policy/ (path-based frontgen preview); // local dev stays at / so the running dev server's URL is unaffected. export default defineConfig(({ command }) => ({ plugins: [react(), tailwindcss()], base: command === 'build' ? '/lead-to-policy/' : '/', }));