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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user