Replace JSON config import

This commit is contained in:
hensm
2022-08-24 19:08:33 +01:00
parent c720eaf4b2
commit ffcdb181d5
3 changed files with 37 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
import path from "path";
import url from "url";
import config from "../../config.json" assert { type: "json" };
import config from "./config.js";
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
const rootPath = path.join(__dirname, "../../../");