Files
YANPM/apps/frontend/app/routes.ts
GW_MC 06cabb0e18
Some checks failed
Test / verify-generated-code (pull_request) Successful in 49s
Test / test (pull_request) Failing after 1m10s
Test / test-frontend (pull_request) Successful in 23s
Test / lint (pull_request) Failing after 1m8s
Add catch-all 404 route and NotFound component to frontend routing
2025-12-02 19:51:49 +08:00

8 lines
203 B
TypeScript

import { type RouteConfig, index, route } from '@react-router/dev/routes';
export default [
index('routes/home.tsx'),
// catch-all 404 route
route('*', 'routes/404.tsx'),
] satisfies RouteConfig;