Static site hosting via tangled
1export class Config { 2 constructor({ site, sites, subdomainOffset }) { 3 this.site = site; 4 this.sites = sites; 5 this.subdomainOffset = subdomainOffset; 6 } 7 8 static async fromFile(filepath) { 9 const fs = await import("fs"); 10 const config = JSON.parse(fs.readFileSync(filepath, "utf8")); 11 return new Config(config); 12 } 13}