chore: remove comments
This commit is contained in:
@@ -17,15 +17,7 @@ export function makeRouter(auth: string | null) {
|
|||||||
try {
|
try {
|
||||||
const routeConfigs = getRoutes(auth);
|
const routeConfigs = getRoutes(auth);
|
||||||
|
|
||||||
console.log(
|
|
||||||
"Creating router with routes:",
|
|
||||||
routeConfigs.length,
|
|
||||||
"auth:",
|
|
||||||
!!auth
|
|
||||||
);
|
|
||||||
|
|
||||||
if (routeConfigs.length === 0) {
|
if (routeConfigs.length === 0) {
|
||||||
console.log("No routes found, adding default Auth route");
|
|
||||||
routeConfigs.push({ path: "/", component: Auth });
|
routeConfigs.push({ path: "/", component: Auth });
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +49,6 @@ export function makeRouter(auth: string | null) {
|
|||||||
defaultPreload: "intent",
|
defaultPreload: "intent",
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Router created successfully");
|
|
||||||
return router;
|
return router;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error creating router:", error);
|
console.error("Error creating router:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user