P
Prisma3mo ago
cbgf

Pulse hosting

Hi there I want to use Prisma Pulse for our supabase/nextJS project. The app is hosted in vercel so I guess I will need to find another host for the backend stream-- what is recommended? Cloudflare workers? Is there a simple deployment guide? Thanks
4 Replies
jonfanz
jonfanz3mo ago
You can still use Vercel for your app hosting. Prisma Pulse is a separate service that would then forward messages to your hosted Next.js app. Here are the instructions for Supabase and Prisma Pulse https://www.prisma.io/docs/pulse/database-setup/supabase In your app I think you could put the Pulse logic in an api route which would then send info via a websocket lib like socket.io
Prisma Pulse: Supabase | Prisma Documentation
Instructions to use Supabase with Prisma Pulse
cbgf
cbgfOP3mo ago
Thanks Jon... what do you mean by this websocket point? What I am missing is where do I put my stream? I dont have long-running server code with vercel. So where do I put the code that recieves events from pulse? Alternatively we also have a backend in AWS lambda... how do I run the stream there?
cib2743
cib27433mo ago
Is there an example using a vercel api route somewhere?
jonfanz
jonfanz3mo ago
I thought I had one, but I can only find this: https://github.com/prisma/prisma-examples/tree/latest/pulse/fullstack-leaderboard Uses an express backend
GitHub
prisma-examples/pulse/fullstack-leaderboard at latest · prisma/pris...
🚀 Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.
Want results from more Discord servers?
Add your server