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
You need to change getServerSideProps to getStaticProps - https://vercel.com/docs/concepts/incremental-static-regeneration/quickstart
Can we use any wildcard for the getStaticPages?
Everything under /tutorials should be cached
Pretty sure you need to use getStaticPaths if I understand you correctly
I believe You can do it at the dynamic route level
Any further info or docs on this?