Slow API responses once deployed to Vercel #5523
-
I'm at the point where my app is finally ready to deploy to Vercel, however I noticed that API routes respond quite slow.
Weirdly enough, other assets such as JavaScript load as fast as locally. Any ideas? I'm making a critical API call before the app is shown so it affects page load significantly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Solved. Cause: lambda cold starts. |
Beta Was this translation helpful? Give feedback.
-
@patryk-smc i had 1-2s before, but now it's averaging 150ms (faster and more consistent than in my local dev) |
Beta Was this translation helpful? Give feedback.
Solved. Cause: lambda cold starts.