Do i need a page.js file in the root folder of my app like app/page.js file ? #69346
Replies: 2 comments 2 replies
-
|
Only the Root Layout is required, see https://nextjs.org/docs/app/building-your-application/routing/layouts-and-templates#root-layout-required. If your app doesn't need the |
Beta Was this translation helpful? Give feedback.
-
|
I have three different layouts for three sections each section have different url like section1 have xavierchild.com (its the home page) , section2 have xavier.com/usertype/cityname (its the home page where usertype and cityname are dynamic), section3 have xavier.com/signin after signin it redirect to xavier.com/admin , after deployment on ubuntu its only working for section1 which is xavierchild.com |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i do not have root route , my root route needs a dynamic value so i don't need page.js file in my root folder . How can i achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions