fix(templates): add notFoundComponent to start root route (#10369)

This commit is contained in:
Ray
2026-04-22 02:56:23 -04:00
committed by GitHub
parent abbdd32953
commit 5d23df4e35
2 changed files with 12 additions and 0 deletions

View File

@@ -25,6 +25,12 @@ export const Route = createRootRoute({
},
],
}),
notFoundComponent: () => (
<main className="container mx-auto p-4 pt-16">
<h1>404</h1>
<p>The requested page could not be found.</p>
</main>
),
shellComponent: RootDocument,
})

View File

@@ -23,6 +23,12 @@ export const Route = createRootRoute({
},
],
}),
notFoundComponent: () => (
<main className="container mx-auto p-4 pt-16">
<h1>404</h1>
<p>The requested page could not be found.</p>
</main>
),
shellComponent: RootDocument,
})