Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed vercel again.

Mike Cao4c544361fd69
diff --git a/lib/detect.ts b/lib/detect.ts
index 868d0a806..0d0614b1d 100644
--- a/lib/detect.ts
+++ b/lib/detect.ts
@@ -69,8 +69,7 @@ export async function getLocation(ip, req) {
return {
country,
- // Vercel documentation says they return only region, but that is not always the case
- subdivision1: region.includes('-') ? region : `${country}-${region}`,
+ subdivision1: region,
city: decodeURIComponent(city),
};
}