Custom 504 pages
Answered
Hamiltonstövare posted this in #help-forum
HamiltonstövareOP
Do you guys know if its possible to make a custom page for Vercel serverless timeouts, I tried _error and 500 on pages folder doesnt seem to work.
Existing discussion on Vercel's github doesnt have replies either.
Existing discussion on Vercel's github doesnt have replies either.
Answered by joulev
but it takes a lot of time of waiting until that page shows up. i think if you cannot avoid it, you should set up a timeout after x seconds and return a user-friendly page if that x seconds has passed
5 Replies
i don't think that's possible
the fix here is to just ensure that never happens
@joulev the fix here is to just ensure that never happens
HamiltonstövareOP
hmm I see, it normally happens when our mongodb memory gets overloaded and it takes time to auto scale
but it takes a lot of time of waiting until that page shows up. i think if you cannot avoid it, you should set up a timeout after x seconds and return a user-friendly page if that x seconds has passed
Answer
HamiltonstövareOP
thanks