Vercel NextJS with-supabase example does not work with latest node20 runtime #1255
Closed
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
Node fetch failure when trying to use
auth
api.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Following the guide to use the next boilerplate and create a project with supabase auth. only change I made was to use
supabase.auth.signInAnonymously
within a server action.I deployed to vercel (where default runtime is the latest, node20) and encountered the error. Tore my hair out for a while wondering if I was missing env (particularly because I saw the
127.0.0.1
portion but I think a bit of a red herring in the end) and eventually tried to downgrade the runtime to node18 and redeploy. It worked.https://vercel.com/templates/next.js/supabase
Expected behavior
No error when using node 20.
System information
Additional context
The vercel template page says to report any issues here.
The text was updated successfully, but these errors were encountered: