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.
How HttpOnly cookies work, why they're essential for security, and how to use them safely in Next.js and Express.