-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Next 13 Root Layout #2300
Feat: Next 13 Root Layout #2300
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: I thought we were going to put the app directory inside /src
, why not put it inside? Will we change it after fully migrating?
We can put as this doc explains. |
Depends on - #2298 - #2300 ## What's the purpose of this pull request? This PR aims to migrate to the new way to fetch data using Next 13. ## How it works? instead of `getServerStaticProps`, now we fetch the data directly from the root `layout.tsx`. ## How to test it? locally, add a console log after the fetch function. ## References https://nextjs.org/docs/app/building-your-application/data-fetching
Depends on
What's the purpose of this pull request?
This PR aims to create the root
layout.tsx
and bring the components from thesrc
folder to theapp
folder.Most of the changes from this PR are related to the path change to the
app
folder. But there are also new 'use clients' added to some components.The sections should be implemented/moved in other PR's related to another JIRA task.
How to test it?
Make sure that the older pages are working as expected and also the
http://localhost:3000/fs-next-update
is rendering (blank) without errors.Starter PR
TBD
References
https://nextjs.org/docs/app/api-reference/file-conventions/layout