Next.js Discord

Discord Forum

Can i still have 2 layout.tsx?

Answered
Banana posted this in #help-forum
Open in Discord
Can i have 2 layout.tsx:
One for my main pages and stuff, and one for my panel dir?
Answered by !=tgt
you can use route groups for that
View full answer

4 Replies

you can use route groups for that
Answer
any folder in the app dir enclosed in parentheses will not be part of the route
Alright thanks