fix: REDIS_ENABLED issue

This commit is contained in:
Travis Fischer
2025-06-07 14:45:01 +07:00
parent 55caa3533e
commit 3ddb6c6b36

View File

@@ -114,7 +114,7 @@ export const isSearchEnabled: boolean = getSiteConfig('isSearchEnabled', true)
// Optional redis instance for persisting preview images
export const isRedisEnabled: boolean =
getSiteConfig('isRedisEnabled', false) || !!getEnv('REDIS_ENABLED')
getSiteConfig('isRedisEnabled', false) || !!getEnv('REDIS_ENABLED', null)
// (if you want to enable redis, only REDIS_HOST and REDIS_PASSWORD are required)
// we recommend that you store these in a local `.env` file