From Dev.to
Vercel FUNCTION_INVOCATION_TIMEOUT (504): find the slow call, then fix it without raising the limit blindly
On Vercel a request fails with a 504 and this page: 504: GATEWAY_TIMEOUT Code: FUNCTION_INVOCATION_TIMEOUT It means your serverless function ran longer than its allowed duration and Vercel stopped it...
