Importing routes with feature folder structure
I am wanting to implement Tanstack Router with file-based routing in my app but my app currently uses a feature style app structure.
Currently I was thinking about reorganizing similar to Bulletproof Next js pages example repo.
If I am store my Pages in a completely different "feature" folder, should I just be importing in the Router from within the Routes folder?
For instance in my
Can i do this:
or do I need to do:
Currently I was thinking about reorganizing similar to Bulletproof Next js pages example repo.
If I am store my Pages in a completely different "feature" folder, should I just be importing in the Router from within the Routes folder?
For instance in my
@features/Profile/pages.tsx,Can i do this:
import Route from @/routes/profileor do I need to do:
const route = getRouteApi('/profile')