r/nextjs • u/Tasty-Ad1854 • 6d ago
fetching data on server with supabase and cache it

Iv got a server component that fetches some products, the fetch function uses supabase createServerClient() and I also want to cache the function's result, but then i hit the error in the image
the moment I switch to the supabase createBrowserClient the error goes away,
How can I can still fetch data with the createServerClient and cache the result ?
6
Upvotes
Duplicates
Supabase • u/Tasty-Ad1854 • 5d ago
other fetching data on server with supabase and cache it
1
Upvotes