Database helper/var for edge functions domain #34742
Unanswered
Revadike
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It would be nice for supabase to have an out-of-box variable or getter function that return the edge functions domain, depending on the environment.
So for production it would return
https://myprojectid.supabase.co/functions/v1/and in a local environment it would returnhttp://127.0.0.1:54321/functions/v1/.Alternatively, you just return the domain (without /functions/v1/)
This would be incredibly helpful to test out cron job or webhooks with edge functions.
All reactions