Client-Side 504 Gateway Timeout with EventSource and Vercel (Server Side Event)
I’m encountering a 504 Gateway Timeout error when using EventSource to connect to a Vercel Serverless function endpoint. The setup involves streaming data from MongoDB using change streams to clients. The code works flawlessly locally but encounters issues on Vercel.