lead-to-policy/vite.config.ts
Bhanu Prakash Sai Potteri 66d4c91f32 Initial import of lead-to-policy (dev env)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 15:28:12 +05:30

12 lines
445 B
TypeScript

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/' : '/',
}));