fix: set vite base to /lead-to-policy/ for path-based preview
This commit is contained in:
parent
cbaec7320f
commit
6ab7a51db4
@ -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/' : '/',
|
||||
}));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user