mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🔍 fix: USE_REDIS condition, Markdown list counter, code highlights (#3806)
* fix: markdown rehype highlight accidental removal * fix: USE_REDIS condition check * fix: markdown list counter
This commit is contained in:
parent
f742b9972e
commit
a267f6e0da
6 changed files with 52 additions and 20 deletions
|
|
@ -9,6 +9,7 @@ const {
|
|||
discordLogin,
|
||||
facebookLogin,
|
||||
} = require('~/strategies');
|
||||
const { isEnabled } = require('~/server/utils');
|
||||
const { logger } = require('~/config');
|
||||
|
||||
/**
|
||||
|
|
@ -40,7 +41,7 @@ const configureSocialLogins = (app) => {
|
|||
resave: false,
|
||||
saveUninitialized: false,
|
||||
};
|
||||
if (process.env.USE_REDIS) {
|
||||
if (isEnabled(process.env.USE_REDIS)) {
|
||||
const client = new Redis(process.env.REDIS_URI);
|
||||
client
|
||||
.on('error', (err) => logger.error('ioredis error:', err))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue