During the vercel build process, or even if we access a non-cached page and have it built at that point, we often get a 504 : GATEWAY_TIMEOUT error on the page and in the logs. It states:
Vercel Runtime Timeout Error: Task timed out after 15 seconds
These requests include POST requests to our Strapi CMS hosted elsewhere. Its those POST requests that have a high time. Like a couple of requests for one page both adding up to about 11 seconds, then what with other processing at Vercel its taken it over 15s and Vercel gives a timeout.
BUT our CMS is not slow… if we accessed it direct in our browser and run GraphQL requests its fine, its FAST.
My localhost is fetching the data OK. Its just in Vercel, its a really slow POST request.
So is there any way I can view what the POST (graphql) request is for these Vercel timeouts so I can then try to debug that in the GraphQL interface, see if its the POST request and/or response that is large maybe. There does not seem to be any means to view this in Vercel logs, so I have no idea what the request is that is taking so long.
Thank you