Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m using my Nuxt app with cloudflare to get users geo location country (cf-ipcountry) using a middleware. I’ve recently switched to DigitalOcean from Google Cloud App Engine and seems like I’m unable to request cf-ipcountry.
Do you guys have any idea why? Or how i can fix it?
Here’s a sample code:
export default async function ({ req,res }) {
try {
const loc = req.headers['cf-ipcountry']
if (loc === undefined) {
console.log("Unknown")
} else {
console.log(loc)
}
}
catch (err) {
console.log(err)
}
}
Checking the request headers in the DigitalOcean App Logs, I cant even see cf-ipcountry.
Would really appreciate any help. Thanks!
24608ead89f046a8abab394f968f2c
1e6b823ea20d4cb189a34a922f5588
alexdo
b7a48936ce14461794a3a55f6cf518
Danish Ali
96312c6bf6494f0f8afc7143971187
96312c6bf6494f0f8afc7143971187
Inshot Pro
phosphide
Larry Singleton
Chris Catto