One Line in My Root Layout Turned 158 Static Pages Into 0
Reading a cookie with cookies() in the Next.js root layout opts every route out of static rendering. What it cost this blog, measured, and how to fix a theme flash without it.
7 min read3
Reading a cookie with cookies() in the Next.js root layout opts every route out of static rendering. What it cost this blog, measured, and how to fix a theme flash without it.
A CDN speeds up your app by serving assets from servers close to your users. Here's how it works and how Next.js takes advantage of it.
A compressed reference of Next.js caching layers and controls (App Router).