about summary refs log tree commit diff stats
path: root/src/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.ts')
-rw-r--r--src/config.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.ts b/src/config.ts
index a96b9c5..cbf6b3a 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -2,4 +2,8 @@ import path from "node:path";
 import fs from "node:fs";
 import toml from "toml";
 
-export default toml.parse(fs.readFileSync("config.toml", "utf-8"));
+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;