Fix geo lookup for Vercel.

pull/1471/head
Mike Cao 2022-08-23 12:09:03 -07:00
parent d3f5f42d02
commit f9e4838d88
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export async function getCountry(req, ip) {
// Database lookup // Database lookup
if (!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); const result = lookup.get(ip);