mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🔃 refactor: Index Sync in Background
This commit is contained in:
parent
72cd159a37
commit
0587a1cc7c
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ const startServer = async () => {
|
||||||
await connectDb();
|
await connectDb();
|
||||||
|
|
||||||
logger.info('Connected to MongoDB');
|
logger.info('Connected to MongoDB');
|
||||||
await indexSync();
|
indexSync().catch((err) => {
|
||||||
|
logger.error('[indexSync] Background sync failed:', err);
|
||||||
|
});
|
||||||
|
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
app.set('trust proxy', trusted_proxy);
|
app.set('trust proxy', trusted_proxy);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue