API is slow when deloy to Vercel #22753
-
I deployed this example to Vercel: It seems this API traveled cross 2 regions: Do we have a solution to this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It seems API is a serverless function and is deployed to a single region only. |
Beta Was this translation helpful? Give feedback.
-
The default region of Vercel serverless functions deployment is Washington DC, USA. The first request if for the HTML file which you get it from a Hong Kong CDN and then the serverless function. |
Beta Was this translation helpful? Give feedback.
-
@meotimdihia 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.
The default region of Vercel serverless functions deployment is Washington DC, USA. The first request if for the HTML file which you get it from a Hong Kong CDN and then the serverless function.