How to get the client Country from Cloudflare Pages ?

https://developers.cloudflare.com/network/ip-geolocation/
How to get the equivalent inside the Cloudflare Pages context ? (We're using Astro for a framework)
Cloudflare Docs
IP geolocation adds the CF-IPCountry header to all requests to your origin server.
Was this page helpful?