Caching blog-like pages

We’re building a site with next.js and Strapi for the CMS, hosting on Vercel. Expect somewhere from 50-100k unique monthly users and wanted to know how to add caching to the blog-like pages. Using getServerSideProps for API calls to strapi to get the data required to generate the page. Any pointers for what to do / where to read?
5 Replies
Matvey
Matvey2y ago
You need to change getServerSideProps to getStaticProps - https://vercel.com/docs/concepts/incremental-static-regeneration/quickstart
Sylte
Sylte2y ago
Can we use any wildcard for the getStaticPages? Everything under /tutorials should be cached
sad.nerd
sad.nerd2y ago
Pretty sure you need to use getStaticPaths if I understand you correctly
iukea
iukea2y ago
I believe You can do it at the dynamic route level
Sylte
Sylte2y ago
Any further info or docs on this?
Want results from more Discord servers?
Add your server