I'm getting this error when I make a call to my next js api, this only happens with the app deployed on vercel, the api works well on local:
An error occurred with your deployment
FUNCTION_INVOCATION_TIMEOUT
The deployment process is automatic on vercel, I think the default command is
next build
The response is:
504 Gateway Timeout