Every D1 response now has a `meta.served_by_region` information. That's the location (region) of you

Every D1 response now has a
meta.served_by_region
information. That's the location (region) of your database instance that processed the query.
To get the location of your worker, as others mentioned above you can use Cloudflare headers of the request telling you the
colo
: https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties
Or fetch the URL https://cloudflare.com/cdn-cgi/trace from within your worker and check the
colo=
line.
Was this page helpful?