Has anybody here got supabase working with prisma ...
# help
e
Has anybody here got supabase working with prisma client using the rest api? Is that even possible? I need to use the rest api as I'm running on cloudflare, so there's no way to use TCP unfortunately
n
Hello @Epailes! 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.
o
Hi You can use prisma with Supabase, because Supabase is just a wrapper of a postgres database. So you still have access to your postgres database, and can connect it with Prisma. I'm using Prisma for migrations for example @Epailes
n
Epailes (2022-05-05)
e
Hey, Yeah I've got prisma working with migrations running on my local or on a node server. Issue is running it on v8 engine that cloudflare workers uses, as I can't use TCP connectivity there it needs to be HTTP. But I can't figure out how to pass in the supabase rest endpoint to the prisma client without going via their data platform. It might not be possible but thought its worth checking to see if there is a way to do it
o
i'm not sure if you can do it with prisma directly in that case