nonissue / andyws

https://andy.ws
2 stars 0 forks source link

Fetch data in pages, not components #13

Open nonissue opened 3 years ago

nonissue commented 3 years ago

Eg. Project List

nonissue commented 3 years ago

Hmm, maybe this doesn't matter since the data is local and available at compile time?

nonissue commented 3 years ago

Resources:

https://medium.com/swlh/next-js-usestaticprops-usestaticpaths-static-json-data-9f7903b8a5aa https://github.com/Boro23-wq/playlist-using-useStaticProps-useStaticPaths https://github.com/frontaid/examples/tree/master/integrations/nextjs

Currently have getStaticPaths working, but can't export because of next/image error.