From 8ad41a2e2b693aaa5f0f9ed34c7be6ebe53d51dc Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sat, 18 Apr 2026 21:07:15 -0700 Subject: [PATCH] fix(landing): render proper 404 for invalid /models and /integrations routes --- .../app/(landing)/integrations/not-found.tsx | 28 +++++++++++++++++++ apps/sim/app/(landing)/models/not-found.tsx | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 apps/sim/app/(landing)/integrations/not-found.tsx create mode 100644 apps/sim/app/(landing)/models/not-found.tsx diff --git a/apps/sim/app/(landing)/integrations/not-found.tsx b/apps/sim/app/(landing)/integrations/not-found.tsx new file mode 100644 index 00000000000..b4ca1ec9d64 --- /dev/null +++ b/apps/sim/app/(landing)/integrations/not-found.tsx @@ -0,0 +1,28 @@ +import type { Metadata } from 'next' +import Link from 'next/link' +import { AUTH_PRIMARY_CTA_BASE } from '@/app/(auth)/components/auth-button-classes' + +export const metadata: Metadata = { + title: 'Page Not Found', + robots: { index: false, follow: true }, +} + +export default function IntegrationsNotFound() { + return ( +
+
+

+ Page not found +

+

+ The page you're looking for doesn't exist or has been moved. +

+
+ + Return to Home + +
+
+
+ ) +} diff --git a/apps/sim/app/(landing)/models/not-found.tsx b/apps/sim/app/(landing)/models/not-found.tsx new file mode 100644 index 00000000000..7db4e7cbfb8 --- /dev/null +++ b/apps/sim/app/(landing)/models/not-found.tsx @@ -0,0 +1,28 @@ +import type { Metadata } from 'next' +import Link from 'next/link' +import { AUTH_PRIMARY_CTA_BASE } from '@/app/(auth)/components/auth-button-classes' + +export const metadata: Metadata = { + title: 'Page Not Found', + robots: { index: false, follow: true }, +} + +export default function ModelsNotFound() { + return ( +
+
+

+ Page not found +

+

+ The page you're looking for doesn't exist or has been moved. +

+
+ + Return to Home + +
+
+
+ ) +}