Next.js error: "You're importing a component that needs next/headers"
Introduction
I had this error at work when working with Next.js You're importing a component that needs next/headers. That only works in a Server Component which is not supported in the pages/ directory..
We're using Next.js 14.1 with App router. I w...
tigerabrodi.blog3 min read