fix: use hashhistory to ensured compiled app works

This commit is contained in:
nchopra 2025-09-10 01:46:05 +05:30
parent 5f904f2ba3
commit 8e661301c5

View file

@ -1,11 +1,18 @@
import React from "react";
import { RouterProvider, createRouter } from "@tanstack/react-router";
import {
RouterProvider,
createRouter,
createHashHistory,
} from "@tanstack/react-router";
import { routeTree } from "./routeTree.gen";
const hashHistory = createHashHistory();
// Create the router instance
const router = createRouter({
routeTree,
defaultPreload: "intent",
history: hashHistory,
});
// Register the router instance for type safety