[Beginner] Authorized route with folder bugs out? #1587
-
I'm using the above snippet to make auth, my folder structure is
this results in a weird
and not working since this makes another '/' that conflicts with base index |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Would probably need an understanding of the URLs you are looking build, but in essence this is what should be getting created.
The All in all, only the following URLs would be created: |
Beta Was this translation helpful? Give feedback.
Would probably need an understanding of the URLs you are looking build, but in essence this is what should be getting created.
The
_private.tsx
and_auth.tsx
should have whatever logic and components configured in them, with an<Outlet />
rendered where the child route should be shown.All in all, only the following URLs would be created:
localhost:3000/
andlocalhost:3000/profile
.