all repos — website @ 2f6152539c540697290ec73a7c1b50b9f2db88c6

My website

src/config.ts (view raw)

1
2
3
4
5
6
7
8
9
import path from "node:path";
import fs from "node:fs";
import toml from "toml";

export default function readConfig(base: string) {
  const filename = path.join(base, "config.toml");

  return toml.parse(fs.readFileSync(filename, "utf-8"));
}