(marketing)
or (auth)
, Next.js will not include (marketing)
or (auth)
in the URL—it’s just an organizational tool to group certain routes or apply layouts without changing the URL structure.Ref - https://github.com/code100x/cms/tree/main/src/app/(marketing)
Create a signup
and signin
page in a nextjs app where both of the pages are wrapped in a layout, but no other pages are.
The website supports three pages
<aside> 💡
You cant keep all the routes at the same level. If you do, the layout
will be applied to the user
page as well. Hence the route groups
</aside>