In order to run your Serverless Functions as fast as possible, Vercel can deploy your code to dozens of locations (called regions) across the world.
Deploying your Serverless Functions to a region close to your data sources (such as your database) can greatly improve performance. Reading data from your data sources will take less network time when your Serverless Functions and data sources are physically close.
For optimal performance, choose a data source which:
- Responds fast upon initial connection (e.g. cold boot)
- Can handle spikes in concurrent connections (e.g. connection pooling, PostgREST)
The default Serverless Function region is Washington, D.C., USA (
iad1). Most external data sources are hosted on the East Coast of the USA, so this ensures your Serverless Functions are fast by default.
sfo1). We recommend updating these projects to the new default of Washington, D.C., USA (
Changing a Project's default Serverless Function region is limited to Teams on the Pro and Enterprise plans.
However, the default Serverless Function region can be changed from San Francisco, USA to Washington, D.C., USA once for any Project created before January 14, 2021 to accommodate the updated default on that date.
You can configure a default Serverless Function region for your Projects in the settings. Choose a project from the dashboard:
Then, select the Settings tab:
Next, select Serverless Functions from the menu.
Here, you can select a default Serverless Function region for your project:
If a Deployment defines the
regions configuration property in
vercel.json, the Project's Serverless Function region setting is ignored.
If a CLI Deployment defines the
--regions option, the "Serverless Function Region" setting is ignored.