Add explicit /404 route to render NotFound component
cgen-771a7599468d4636b06a82bf0fcb0ba0
This commit is contained in:
parent
6a6b93317b
commit
4db7246c51
1 changed files with 2 additions and 0 deletions
|
|
@ -98,6 +98,8 @@ const App = () => (
|
|||
<Route path="/privacy" element={<Privacy />} />
|
||||
<Route path="/terms" element={<Terms />} />
|
||||
|
||||
{/* Explicit 404 route for static hosting fallbacks */}
|
||||
<Route path="/404" element={<NotFound />} />
|
||||
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
|
||||
<Route path="*" element={<NotFound />} />
|
||||
</Routes>
|
||||
|
|
|
|||
Loading…
Reference in a new issue