diff --git a/templates/start-app/src/routes/__root.tsx b/templates/start-app/src/routes/__root.tsx index c6988c007e..ea8b325c4c 100644 --- a/templates/start-app/src/routes/__root.tsx +++ b/templates/start-app/src/routes/__root.tsx @@ -25,6 +25,12 @@ export const Route = createRootRoute({ }, ], }), + notFoundComponent: () => ( +
+

404

+

The requested page could not be found.

+
+ ), shellComponent: RootDocument, }) diff --git a/templates/start-monorepo/apps/web/src/routes/__root.tsx b/templates/start-monorepo/apps/web/src/routes/__root.tsx index 259f4a49ee..33e2a8c107 100644 --- a/templates/start-monorepo/apps/web/src/routes/__root.tsx +++ b/templates/start-monorepo/apps/web/src/routes/__root.tsx @@ -23,6 +23,12 @@ export const Route = createRootRoute({ }, ], }), + notFoundComponent: () => ( +
+

404

+

The requested page could not be found.

+
+ ), shellComponent: RootDocument, })