Fixed vercel again.

This commit is contained in:
Mike Cao 2023-04-25 16:51:42 -07:00
parent 4ea3eec98c
commit 4c544361fd

View File

@ -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),
};
}