db(couchdb): auto-provision databases on startup for production strategy; add TokenService with CouchDB-backed token storage and localStorage fallback; switch OAuth to unified config for client IDs and redirect URI; express Request typing for req.user; align exportAsEnvVars with show-config expectations; remove Vite importmap from index.html; prefer babel-jest over ts-jest; remove duplicate uuid mocking from Jest config

This commit is contained in:
William Valentin
2025-09-09 12:30:38 -07:00
parent 062e0973c1
commit 15170a4f43
17 changed files with 1097 additions and 67 deletions

View File

@@ -28,6 +28,11 @@ export class ProductionDatabaseStrategy implements DatabaseStrategy {
url: dbConfig.url,
username: dbConfig.username,
});
// Provision required databases on startup (non-blocking)
this.initializeDatabases().catch(error => {
logger.db.error('Failed to initialize databases', error as Error);
});
}
private async initializeDatabases(): Promise<void> {