Pusher with Vercel or Netlify?
I have a T3 stack application working locally that sends and receives real-time notifications perfectly well on localhost:3000.
When deploying to Netlify or Vercel, the pusher messages don't seem to send, or when they do, it takes 10-30 seconds to send/receive the messages.
Just some context. I make API calls with trpc and the api sends a pusher trigger like this:
Any idea how to address this or debug this?
1 Reply
OK.. I figured it out and it was silly. Apparently Vercel is closing the servless connection before the pusher is fully sent. I needed to await the pusher like this: