BitlystBitlyst
PostsSeriesTopicsAbout

Bitlyst

Short, diagram-first posts on JavaScript, React & Next.js. Follow via RSS or the newsletter.

© 2026 Mohsen Fallahnejad

PostsSeriesTopicsLinksAboutRSSGitHubX
← All topics

#cookies

2 posts

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.

Nov 1, 20267 min read3

Understanding HttpOnly Cookies in Depth

How HttpOnly cookies work, why they're essential for security, and how to use them safely in Next.js and Express.

Oct 14, 20253 min read1

Related topics

#nextjs#app-router#caching#express#performance#security#web