supabase / functions-relay

API Gateway for Supabase Edge functions
MIT License
35 stars 9 forks source link

RelayError when invoking edge function using Next middleware #26

Open rbkayz opened 1 year ago

rbkayz commented 1 year ago

Bug report

I'm facing a relay error whenever I'm invoking an edge function using Next Middleware. Works completely fine if I'm calling the function directly from the FE (i'd like to avoid exposing this to hide some of the headers)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create the default next project using create-next-app
  2. Call any supabase edge function in any API route
  3. See error

Expected behavior

Was working fine till yesterday. Not sure what changed