Fixed vercel again.
This commit is contained in:
1 parent
4ea3eec98c
commit
4c544361fd
1 file changed
+1
-2
+1
-2
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user