next.js
b9dd6c4f - Fix: Call cookies function from route to flag as dynamic (#57494)

Commit
2 years ago
Fix: Call cookies function from route to flag as dynamic (#57494) ### What? Move calling the `cookies` function up to the route ### Why? This flags the route as `dynamic`, meaning we don't need to explicitly declare `export const dynamic = 'force-dynamic'` ### How? Passing the returned `cookieStore` into Supabase helper functions, rather than the `cookies` function itself
Author
Parents
Loading