Combining file based routes with code based routing
We're migrating a big and old codebase from
We intend to primarily setup our routes through the recommended file-based routing, but our application has a lot of redirects from older migrations that we need to keep working.
We need to target some wildcard routes, and we've found a way to achieve this in the
react-router@v3 and exploring TanStack Router.We intend to primarily setup our routes through the recommended file-based routing, but our application has a lot of redirects from older migrations that we need to keep working.
We need to target some wildcard routes, and we've found a way to achieve this in the
router.tsx, but it feels a little hacky. Is there a best practice to define code based routing besides file based routing that doesn't involve mutating the auto-generated routeTree?