Skip to content

Commit 3ddb6c6

Browse files
fix: REDIS_ENABLED issue
1 parent 55caa35 commit 3ddb6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const isSearchEnabled: boolean = getSiteConfig('isSearchEnabled', true)
114114

115115
// Optional redis instance for persisting preview images
116116
export const isRedisEnabled: boolean =
117-
getSiteConfig('isRedisEnabled', false) || !!getEnv('REDIS_ENABLED')
117+
getSiteConfig('isRedisEnabled', false) || !!getEnv('REDIS_ENABLED', null)
118118

119119
// (if you want to enable redis, only REDIS_HOST and REDIS_PASSWORD are required)
120120
// we recommend that you store these in a local `.env` file

0 commit comments

Comments
 (0)