From 6ab7a51db4033cfa6bad4a3624fdad9a0c84ef73 Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Sai Potteri Date: Tue, 23 Jun 2026 12:04:39 +0530 Subject: [PATCH] fix: set vite base to /lead-to-policy/ for path-based preview --- vite.config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 6e7f528..20be9d1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,9 @@ import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; // https://vite.dev/config/ -export default defineConfig({ +// 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/' : '/', +}));