vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
189 stars 60 forks source link

Feat: next 13 global section data fetching #2301

Closed eduardoformiga closed 5 months ago

eduardoformiga commented 5 months ago

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.

Starters Deploy Preview

TBD

References

https://nextjs.org/docs/app/building-your-application/data-fetching

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview May 3, 2024 9:31pm
eduardoformiga commented 5 months ago

duplicated