Choosing Vercel serverless function region for Sanity data storage

9 replies
Last updated: May 12, 2022
With Vercel allowing ppl to pick their severless function region, https://vercel.com/changelog/hobby-customers-can-now-select-their-preferred-region-for-serverless . What region is Sanity data hosted in and where can I find that information?
AI Update

Sanity's Content Lake is hosted on Google Cloud Platform in the europe-west1 region, which is located in St. Ghislain, Belgium. All customer data is stored in this EU data center.

Currently, you cannot choose your dataset region when creating a Sanity project - all datasets are hosted in this Belgium location. However, Sanity uses a global CDN infrastructure built on Google's network to deliver your content with low latency worldwide, with points of presence across Europe, North America, South America, Asia, and Australia.

This is different from Vercel's serverless functions, which execute code in specific regions. With Sanity, your data storage location is fixed in the EU, but content delivery is globally distributed.

Where to find this information:

The most direct place to find data residency information is in the Google Cloud Platform article in Sanity's documentation, though I'll admit this information could be more prominently featured. You can also find infrastructure details on Sanity's security page.

If data residency is critical for your project (for GDPR compliance or performance reasons), it's worth noting that having data stored in the EU can be beneficial for European projects from a compliance perspective. For global projects, the CDN layer helps ensure good performance regardless of where your users are located.

Hey User,
I’m not sure if you are asking about CDN locations for delivering assets or our
API CDN locations , but there is a good chunk of info for them in our docks found here (including where they are located). I believe we store customer data in google cloud storage locations https://cloud.google.com/about/locations#europe , while some login data of course depends on what provider you use - if you use Google, that info is stored wherever Google is storing things. Your content, on the other hand, will be stored in CDNs around the world for ease of access
Does this help?
So it states
The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source your Serverless Function might depend on
So basically it should be close to wherever the data for my posts is being stored
Gotcha, let me confirm internally that I am giving you the correct information!
No worries, I was just generally curious 🙂
As a follow up User, we do store the data you are asking about in google cloud storage location listed here specifically in EUWest1 https://cloud.google.com/about/locations#europe
Ah so nothing is in the US?
The CDNs are but not the original data
Well I have
_useCdn_: _process.env.NODE_ENV_ ===
'production',
in my
config.ts
so I should be ok setting my Vercel projects to use San Fransisco?
I’m not super familiar with their requirements but from a quick glance at their docs that should work, yes 👍

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?