make config class and separate migrations script

This commit is contained in:
Milo Schwartz
2025-01-01 17:50:12 -05:00
parent b199595100
commit 9732098799
45 changed files with 163 additions and 156 deletions

8
server/consts.ts Normal file
View File

@@ -0,0 +1,8 @@
import path from "path";
import { fileURLToPath } from "url";
import { existsSync } from "fs";
export const __FILENAME = fileURLToPath(import.meta.url);
export const __DIRNAME = path.dirname(__FILENAME);
export const APP_PATH = path.join("config");