mirror of
https://github.com/SrIzan10/analytics.srizan.ml.git
synced 2026-05-01 10:35:15 +00:00
Fix geo lookup for Vercel.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user