Is there way to avoid having Workers run from EU- or Canada-based datacenters?

Hello there, I want to use CF Workers to send API requests to Google Gemini which is not available in certain regions, namely EU and Canada. Is there a way to configure Workers so that they avoid running from these regions and avoid the request being rejected? Thanks!
2 Replies
DaniFoldi
DaniFoldi10mo ago
Hi :meowwave: , The "intended" solution to this would be Data Localization Suite, which is an enterprise-only addon product. As a workaround, I recommend proxying Gemini requests through a Durable Object, which can be restricted to FedRAMP jurisdiction, or you can provide a "location hint" of wnam or enam - I'm not sure if that includes Canadian colos though well @HardlyWorkin' to the rescue, the "Regions" feature shows just that: https://where.durableobjects.live/region/wnam and https://where.durableobjects.live/region/enam show that they don't so those are also valid options.
fromtunis
fromtunisOP10mo ago
Thanks for your answer @Blob | Rollback and sorry for the late response! I ended up using Vercel's Edge Functions as the allow to specify what regions to run the functions in with a simple configuration.
Want results from more Discord servers?
Add your server