In a server action I call
const response = await axios.get(url);
Multiple of these are batched together and then awaited like
await Promise.all(fetchPromises);
It works well in my local environment. But after deploying it, these batched requests now take like 10 times longer. Why would that be?
Here’s a picture of the batched requests as recorded by Vercel’s logs.
Next JS 14