simplify installer and remove parsing from read config

This commit is contained in:
miloschwartz 2025-06-21 16:35:22 -04:00
parent 9f38ad9b4d
commit ead5df0a8c
No known key found for this signature in database
9 changed files with 51 additions and 70 deletions

View file

@ -5,6 +5,12 @@ import { withReplicas } from "drizzle-orm/pg-core";
function createDb() {
const config = readConfigFile();
if (!config.postgres) {
throw new Error(
"Postgres configuration is missing in the configuration file."
);
}
const connectionString = config.postgres?.connection_string;
const replicaConnections = config.postgres?.replicas || [];