Skip to content

Commit

Permalink
Log
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaandotcom committed Feb 19, 2024
1 parent 56af8e4 commit 0886488
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion plugins/country.server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { Reader } from "@maxmind/geoip2-node";
import { readFileSync } from "fs";
import { resolve } from "path";

const dbBuffer = readFileSync("server/data/geolite-country.mmdb");
console.log(
"country.server.js",
JSON.stringify({
__dirname,
cwd: resolve.cwd(),
pwd: resolve.pwd(),
}),
);

const dbBuffer = readFileSync(resolve("server/data/geolite-country.mmdb"));

const euroCountries = [
// EU countries
Expand Down

0 comments on commit 0886488

Please sign in to comment.