504 Gateway Timeout Error on Vercel

Hello, everyone. I've been really bugged with this error as you've seen above. Anytime I try to host my full stack NextJS application which has MongoDB has it's database, I get that error. Please, how can I fix this?
2 Replies
Gabriel
Gabriel5mo ago
Vercel has a limit of 10 seconds for each serverless function execution. You are probably exceeding these limits. Mongo shouldn’t be taking this long to execute, for simple functions
Tioluwani Olubunmi
Tioluwani OlubunmiOP5mo ago
Hmmm, thanks.
Want results from more Discord servers?
Add your server