_app.tsx file for other folders
I would like to implement layout-based routing in my pages directory. However, since I am using the "pages" directory in Next.js, I am looking for a way to use something similar to the "_app.tsx" file, but only for the files inside a specific folder. This would function similarly to the Remix routing style, where there is a folder, such as "panel," and a file called "__panel.tsx" that wraps the files inside the "panel" folder with a layout. How can I achieve something similar in the Next.js "pages" directory?
0 Replies