mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fix geo lookup for Vercel.
This commit is contained in:
parent
d3f5f42d02
commit
f9e4838d88
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ export async function getCountry(req, ip) {
|
|||
|
||||
// Database lookup
|
||||
if (!lookup) {
|
||||
lookup = await maxmind.open('./node_modules/.geo/GeoLite2-Country.mmdb');
|
||||
lookup = await maxmind.open('node_modules/.geo/GeoLite2-Country.mmdb');
|
||||
}
|
||||
|
||||
const result = lookup.get(ip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue