Skip to content

Commit

Permalink
Fix companion redis start up error
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Jul 13, 2023
1 parent 62b75b8 commit 1e32e82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@uppy/companion/src/standalone/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ const getConfigFromEnv = () => {
const obj = JSON.parse(process.env.COMPANION_REDIS_OPTIONS)
return obj
} catch (e) {
console.log('COMPANION_REDIS_OPTIONS parse error', e)
if (process.env.COMPANION_REDIS_OPTIONS) {
console.log('COMPANION_REDIS_OPTIONS parse error', e)
}
return process.env.COMPANION_REDIS_URL
}
})(),
Expand Down

0 comments on commit 1e32e82

Please sign in to comment.