Add DBGate opener for scrape database

This commit is contained in:
2026-08-05 21:49:03 +02:00
parent 10672a6be3
commit 2106201f9c
11 changed files with 90 additions and 3 deletions
+8
View File
@@ -42,6 +42,10 @@ export function loadConfig({ configPath = "config/local.json", dryRun } = {}) {
scrapeName: env.SCRAPE_DB_NAME || config.database?.scrapeName || "catalog_scrape",
connectionLimit: Number(env.DB_CONNECTION_LIMIT || config.database?.connectionLimit || 5),
},
databaseGate: {
url: env.DBGATE_URL || config.databaseGate?.url || "http://127.0.0.1:3000",
browserEngine: String(env.DBGATE_BROWSER_ENGINE || config.databaseGate?.browserEngine || "chromium").toLowerCase(),
},
};
}
@@ -89,5 +93,9 @@ function mergeConfig(base, override) {
...base.database,
...override.database,
},
databaseGate: {
...base.databaseGate,
...override.databaseGate,
},
};
}