504 error in production not localhost
Unanswered
Highlander posted this in #help-forum
HighlanderOP
I am getting a 504 error and its timing out on the API request after 10 secs on production, not on localhost:3000. My development server is working and so was my production, but it just randomly stopped working and i checked all the env files in vercel and my text editor. I am completely stuck and can't seem to find a solution anywhere
2 Replies
what is your vercel plan? the default timeout for serverless functions in the Hobby plan is 10s so your API route can't take longer than that. https://vercel.com/docs/concepts/limits/overview#general-limits
HighlanderOP
I am on the hobby plan and i think I fixed it by adding mongodb integration from vercel options