Add explicit /404 route to render NotFound component

cgen-771a7599468d4636b06a82bf0fcb0ba0
This commit is contained in:
Builder.io 2025-09-30 00:03:23 +00:00
parent 6a6b93317b
commit 4db7246c51

View file

@ -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>