Change location of Vercel hosted website
Unanswered
Brown-chested Martin posted this in #help-forum
Brown-chested MartinOP
Hello, I am trying to change the location where my website is hosted on Vercel. I changed the Function Region (in project settings) to Europe but using websites that detect where my website is located they show that my website is in USA.
Am I mistaking website location with Serverless Function location? Are they the same thing?
If thats not the problem then how do I change the website location to europe?
Am I mistaking website location with Serverless Function location? Are they the same thing?
If thats not the problem then how do I change the website location to europe?
15 Replies
@Brown-chested Martin Hello, I am trying to change the location where my website is hosted on Vercel. I changed the Function Region (in project settings) to Europe but using websites that detect where my website is located they show that my website is in USA.
Am I mistaking website location with Serverless Function location? Are they the same thing?
If thats not the problem then how do I change the website location to europe?
I think that location is deduced from the IP address which is vercel server’s IP and is shared for all vercel projects and is in the United States
But that’s not where the site is deployed, in fact it’s hard to say where it’s deployed
Edge functions and static files are propagated and stored in data centres around the globe
Only serverless functions are deployed and run in a predefined location which is the serverless function location you configured
And there is also the database, file storage and so on and so forth services that you use, they may host your data in anywhere too, you have to check them
@joulev And there is also the database, file storage and so on and so forth services that you use, they may host your data in anywhere too, you have to check them
Brown-chested MartinOP
Thats the thing, my data is in supabase and it is located in europe. I am also located in europe and so are my clients so it only makes sense for the website to also be located in europe but I only managed to find a way to change the “Serverless Functions†location, not the website itself 😦
@Brown-chested Martin Thats the thing, my data is in supabase and it is located in europe. I am also located in europe and so are my clients so it only makes sense for the website to also be located in europe but I only managed to find a way to change the “Serverless Functions†location, not the website itself 😦
How are you detecting where the website is located?
@Marchy How are you detecting where the website is located?
Brown-chested MartinOP
I know now that its not trustable because of vercel ip but I also can't find any place on vercel website that tells me where my website is located
@Brown-chested Martin I know now that its not trustable because of vercel ip but I also can't find any place on vercel website that tells me where my website is located
Well, i'm not sure that it's accurate to say your website is "hosted" somewhere, more that it's cached or prioritized in certain regions. When a website on vercel is requested, it's rendered in the nearest region.
If you use the HTTP tool you can see the differet IPs that get hit when your website is requested from different locations. Your content would be rendered and cached in those regions
If you use the HTTP tool you can see the differet IPs that get hit when your website is requested from different locations. Your content would be rendered and cached in those regions
Serverless is distributed computing, so you don't have a "server" running on a box in a specific region. You have functions that can be called from various places to enhance performance closest to the user.
The IP listing is more for contacting the host provider, not determining where the request is handled
@Marchy Well, i'm not sure that it's accurate to say your website is "hosted" somewhere, more that it's cached or prioritized in certain regions. When a website on vercel is requested, it's rendered in the nearest region.
If you use the HTTP tool you can see the differet IPs that get hit when your website is requested from different locations. Your content would be rendered and cached in those regions
Brown-chested MartinOP
That's the problem... I changed the serverless location to europe but the tool still shows only USA IPs getting hit
@Marchy Serverless is distributed computing, so you don't have a "server" running on a box in a specific region. You have functions that can be called from various places to enhance performance closest to the user.
Brown-chested MartinOP
And the whole website gets turned into serverless?