Skip to content

Commit

Permalink
Fix geo property to match Header in Geo demo (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscontreras authored Jan 9, 2025
1 parent 95f5289 commit d7e6b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edge-middleware/geolocation/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function middleware(req: NextRequest) {
const geo = geolocation(req)
const country = geo.country || 'US'
const city = geo.city || 'San Francisco'
const region = geo.region || 'CA'
const region = geo.countryRegion || 'CA'

const countryInfo = countries.find((x) => x.cca2 === country)

Expand Down

0 comments on commit d7e6b29

Please sign in to comment.