You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coming from trying out the new Next.js app directory (Not an apples to apples comparison I know) I've found one feature that has made structuring my file-based routes 100x easier to manage is route groups which allows you to group pages together in a directory & wrapping that directory name in brackets, like (foo) for example, to keep the route pathname the same isolate stuff to be scoped specifically.
Wondering what others thoughts on this feature are & if this is something that either Fresh could add or someone else could implement via a 3rd party module?
Why
One of the best examples I have found for this is isolating the "app" part of your application & the "marketing" page(s). So you have (marketing) that groups together say index.tsx, pricing.tsx, about.tsx, etc & then you have (dashboard) for the actual application which is all passed through a _middleware.ts to add, for example, some authentication check.
The text was updated successfully, but these errors were encountered:
What
Coming from trying out the new Next.js app directory (Not an apples to apples comparison I know) I've found one feature that has made structuring my file-based routes 100x easier to manage is route groups which allows you to group pages together in a directory & wrapping that directory name in brackets, like
(foo)
for example, to keep the route pathname the same isolate stuff to be scoped specifically.Wondering what others thoughts on this feature are & if this is something that either Fresh could add or someone else could implement via a 3rd party module?
Why
One of the best examples I have found for this is isolating the "app" part of your application & the "marketing" page(s). So you have
(marketing)
that groups together sayindex.tsx
,pricing.tsx
,about.tsx
, etc & then you have(dashboard)
for the actual application which is all passed through a_middleware.ts
to add, for example, some authentication check.The text was updated successfully, but these errors were encountered: