refactor: move into monorepo

This commit is contained in:
Max Koon
2025-11-08 13:37:55 -05:00
parent 63670ff3b0
commit 058f2bb94f
50 changed files with 1550 additions and 1523 deletions

9
apps/api/src/db.ts Normal file
View File

@@ -0,0 +1,9 @@
import { getDb } from "@money/shared/db";
if (!process.env.ZERO_UPSTREAM_DB) {
throw new Error("ZERO_UPSTREAM_DB is not set");
}
export const db = getDb({
connectionString: process.env.ZERO_UPSTREAM_DB,
});