Next.js Discord

Discord Forum

Layouts for Subroutes in Pages Router?

Answered
French Angora posted this in #help-forum
Open in Discord
French AngoraOP
Does anyone know how to apply a layout to subroute or a folder? I know you can create a layout.tsx file with the app router but what about the pages router?

4 Replies

Answer
Its not as clean as app router but it works.
French AngoraOP
its not clean at all, and was considering this
thank you !