Convert from SSG to SSR
Closed this issue · 0 comments
binoy14 commented
What?
We will use Fastly in front of Vercel as a CDN/caching layer (see #10). Therefore, we will convert from Static Site Generation (SSG) to Server Side Render (SSR) with caching. Eventually, we'll use cache invalidation when data changes – but for this ticket, we should focus on converting from SSG to SSR.
How?
In the NextJS page files, instead of using getStaticProps
, we should use getServerSideProps
so that our page data is fetched each time the page is fetched from Vercel.