diff --git a/src/main.tsx b/src/main.tsx index 90b08ec..857fb22 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -6,7 +6,10 @@ import { AppProviders } from "./app/providers/AppProviders"; import "./index.css"; import Modal from "react-modal"; -const router = createRouter({ routeTree }); +const router = createRouter({ + routeTree, + basepath: "/bayiq", +}); Modal.setAppElement("#root"); diff --git a/vite.config.ts b/vite.config.ts index 9c51349..d367053 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ plugins: [ tanstackRouter({ target: "react", - autoCodeSplitting: true, + autoCodeSplitting: false, }), react(), tailwindcss(), @@ -22,4 +22,11 @@ export default defineConfig({ }, }, }, + build: { + rollupOptions: { + output: { + manualChunks: undefined, + }, + }, + }, });