diff --git a/studio/frontend/src/app/router.tsx b/studio/frontend/src/app/router.tsx index d26d8b9dee..c7bc0440bd 100644 --- a/studio/frontend/src/app/router.tsx +++ b/studio/frontend/src/app/router.tsx @@ -1,7 +1,8 @@ // SPDX-License-Identifier: AGPL-3.0-only // Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0 -import { createRouter } from "@tanstack/react-router"; +import { Link, createRouter, useRouterState } from "@tanstack/react-router"; +import { Button } from "@/components/ui/button"; import { Route as rootRoute } from "./routes/__root"; import { Route as dataRecipesRoute } from "./routes/data-recipes"; import { Route as dataRecipeRoute } from "./routes/data-recipes.$recipeId"; @@ -29,7 +30,34 @@ const routeTree = rootRoute.addChildren([ dataRecipeRoute, ]); -export const router = createRouter({ routeTree }); +function DefaultNotFound() { + const pathname = useRouterState({ select: (s) => s.location.pathname }); + return ( +
+ + {pathname} does not exist. +
+