import logger from "@/app/www/system/Logger"; import { readFileSync } from "fs"; const configure = new (class Configure { db: { auth: string; db: string; remote: string; avatar: string; }; www: { qwilight: string; }; postLength: number; constructor() { const { db, www, postLength } = JSON.parse( readFileSync("Configure.json", "utf-8"), ); this.db = db; this.www = www; this.postLength = postLength; logger.info("Loaded Configure"); } })(); export default configure;