diff --git a/src/app/[locale]/[...rest]/page.tsx b/src/app/[locale]/[...rest]/page.tsx new file mode 100644 index 0000000..2dc2960 --- /dev/null +++ b/src/app/[locale]/[...rest]/page.tsx @@ -0,0 +1,5 @@ +import { notFound } from "next/navigation"; + +export default function CatchAllPage() { + notFound(); +} diff --git a/src/app/[locale]/not-found.tsx b/src/app/[locale]/not-found.tsx new file mode 100644 index 0000000..c2f33da --- /dev/null +++ b/src/app/[locale]/not-found.tsx @@ -0,0 +1,34 @@ +import { getTranslations } from "next-intl/server"; +import Link from "next/link"; +import { routes } from "@/lib/routes"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { Button } from "@/components/ui/button"; + +export default async function NotFound() { + const t = await getTranslations("Fallback.NotFound"); + + return ( +
+ Page not found +
+ + Go back home + +