hackernews-redesign
hackernews-redesign copied to clipboard
Seed initial data to SWR for the dynamic pages
Seed initial data to SWR for the dynamic pages. (ie, pages/items/[id].jsx) .
It can be done using a combination of getStaticPaths
and getStaticProps
. It also needs all the ids of the posts showing on the pages.