Skip to content

Latest commit

History

History
20 lines (14 loc) 路 1.17 KB

2022-01-08.md

File metadata and controls

20 lines (14 loc) 路 1.17 KB
publish_date tags
2022-01-08
nextjs

Reading up on Next.js getStaticProps and getStaticPaths. Nice tutorial https://spacejelly.dev/posts/how-to-create-pages-in-next-js-with-static-dynamic-data/#step-2-using-getstaticprops-to-statically-generate-a-page-with-dynamic-data

Not quite figured how to infer the types when consuming these static props in the component... Interesting suggestions here but nothing I like, https://stackoverflow.com/questions/65078245/how-to-make-next-js-getstaticprops-work-with-typescript