about summary refs log tree commit diff stats
path: root/src/config.ts
blob: 428d63ccefa6c822ac4660998c09a438e6ba321b (plain)
1
2
3
4
5
6
7
8
import fs from "node:fs";
import toml from "toml";

const config = toml.parse(fs.readFileSync("config.toml", "utf-8"));
if (import.meta.env.NODE_ENV === "development") {
  config.base_url = "http://localhost:3000";
}
export default config;