Closed eduardoformiga closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
faststore-site | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 7, 2024 7:04pm |
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.
Depends on
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 rootlayout.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