https://supabase.com/ logo
#help
Title
# help
k

kapowell

05/13/2022, 8:35 PM
Does anyone know how to self host edge functions? or if you can at all? using the supabase CLI seems like you have to deploy edge functions to the hosted option. However, i am currently doing a POC for my company with supabase but it is hard to do anything self hosted with supabase it seems. I know i could pay for support contract but there is now way to get that unless the poc is successful lol. All help is appreciated
n

Needle

05/13/2022, 8:35 PM
Hello @kapowell! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g

garyaustin

05/14/2022, 12:23 AM
Not sure all you need locally, but you can test them locally shown here https://supabase.com/docs/guides/functions#developing-locally
n

Needle

05/14/2022, 12:23 AM
kapowell (2022-05-13)
g

garyaustin

05/14/2022, 12:29 AM
To deploy your own functions on the web without Supabase hosting you would need to use Deno’s hosting service or since open source role your own server.
k

kapowell

05/16/2022, 2:14 PM
ok but the self hosting "studio" doesn't have the option to view the functions there, so i was assuming i wouldnt be able to use the dashboard for them or the same URL to invoke them. @garyaustin do you have any idea about this?
g

garyaustin

05/16/2022, 2:24 PM
I took your comment to mean you planned to self host in production. If so not sure what your URL comment on being the same means. I’ve not messed much with local testing of edge functions but I think it is very limited and for testing only one at a time. I’ve not seen any sort of roadmap for what will change, be added to, functions before safe to use for production in August. Sorry for lack of helping further as I’m still learning their limitations myself.
k

kapowell

05/16/2022, 2:31 PM
So I guess I didn’t explain myself very well. First, for my company they want everything hosted internal on our infrastructure. I’m trying to provide a way for people to turn up new apps more easily and with less code - which is what led me here. So the other parts of supabase are great (minus the lack of official kubernetes support) the only missing piece for us is the edge functions. So when invoking a function on supabase hosting you simply call functions.supabase via post. Or the sdk. However in studio when you self host the functions are not even an icon on the side bar. From reading blog posts I see self hosting functions were planned at some point but I was hoping to see how soon or if the backend functionality is there etc. I know platforms like appwrite can do them but there platform is based on noSQL databases and that won’t work for us either. So I’m trying to see how I can provide a similar experience of the cloud hosted version to developers here - if successful I will be able to secure a support contract with supabase, if they are willing. But if I can't prove viability for our set up then I’m out of luck lol.
g

garyaustin

05/16/2022, 2:40 PM
This forum is more users helping users with occasional team members jumping in. Functions are pretty new so not as many points of knowledge yet. https://github.com/supabase/supabase/discussions might have better odds of an SB dev seeing your question. It seems more a roadmap question though as right now there is not support for self hosting SB edge functions. You can though use Deno, which SB uses, to roll your own or use their cloud, but of course misses studio stuff and built in jwt support.
k

kapowell

05/16/2022, 2:41 PM
ok thanks ill repost there