Fix geo lookup for Vercel.
parent
d3f5f42d02
commit
f9e4838d88
|
@ -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…
Reference in New Issue