about summary refs log tree commit diff stats
path: root/src/config.ts
blob: cbf6b3ab79c0a730bbfb626e33bbf31990f53140 (plain)
1
2
3
4
5
6
7
8
9
import path from "node:path";
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;