Replies: 1 comment
-
very unlikely to happen. the other thing can probably be implemented via a custom virtual file route based crawler |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to implement implicit directory-based routing similar to Next.js (App Router)?
For example, in Next.js, page routes directly correspond to the directory structure. This is very intuitive and closely resembles how traditional websites are built without using a framework.
/users, you place/users/page.tsx/users/${userId}, you place/users/${userId}/page.tsxThis mechanism feels natural and easy to understand because it mirrors conventional website structures.
However, TanStack Start currently only supports file-based routing. Even with file-based routing, routes must be explicitly defined per file, and developers need to manually specify which component is rendered for each route.
What I am looking for is a routing system where routes are implicitly tied to directories, and the default exported component from that directory is rendered automatically. In other words, a more intuitive, directory-driven routing approach that does not require explicit route definitions for each page.
Beta Was this translation helpful? Give feedback.
All reactions