Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I came across this official example here: https://github.com/vercel/next.js/tree/master/examples/ssr-caching
My app is also translated using next-i18next. I believe this is causing an issue, as implementing either solution has an error being thrown: Error: Initial locale argument was not passed into serverSideTranslations
So the values are up to you; you could combine this client-side revalidation (SWR from Vercel) Note that this only works through Vercel’s hosting platform, you can't feel any difference if you test locally. Once live, you'll see a header such as "x-vercel-cache" or something like this which tells you if it's HIT, MISS or STALE (I believe).
Related posts
- Next.js 10.2 – Improved Performance, Accessibility, Automatic Font Optimization
- Mastering Data Fetching in React: A Comprehensive Guide to SWR
- Building a Blog Subscription and Pusher with AirCode and Resend
- How to build and deploy a modern-day Next.js application
- Next.js Weekly #14: Faster Dev Server, Platform Starter Kit v2, Misconceptions about Client Components [👇 all news in comments]