© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago
segheysens

Next.js force-dynamic for auth cookies?

auth
I just started receiving a build error from Next.js where I'm using Supabase Auth:

"Route /settings/organization/teams couldn't be rendered statically because it used
cookies
cookies
."

From what I've read, the SSR package uses cookies, and I migrated to that over two months ago and didn't start receiving the error until the past week. I did update Next.js because of the react flight vuln, but that's the only thing that's changed that I can think of.

Has anybody else come across this error when using supabase auth? Is there a clean solution that I might be missing, or due I need to use the dynamic "force-dynamic" export in every file that also has auth? https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
File-system conventions: Route Segment Config | Next.js
Learn about how to configure options for Next.js route segments.
File-system conventions: Route Segment Config | Next.js
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase auth next.js
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth with Next.js
SupabaseSSupabase / help-and-questions
4y ago
multiple auth cookies
SupabaseSSupabase / help-and-questions
14mo ago
Auth error with Next.js example
SupabaseSSupabase / help-and-questions
4y ago