From d7e6b292d3aa1597c30f4c75a9601d93f73b68a4 Mon Sep 17 00:00:00 2001 From: jscontreras Date: Thu, 9 Jan 2025 17:57:26 -0500 Subject: [PATCH] Fix geo property to match Header in Geo demo (#999) --- edge-middleware/geolocation/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edge-middleware/geolocation/middleware.ts b/edge-middleware/geolocation/middleware.ts index a250780abd..a56c81eb72 100644 --- a/edge-middleware/geolocation/middleware.ts +++ b/edge-middleware/geolocation/middleware.ts @@ -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)