Closed danilofuchs closed 4 years ago
Since serverless-offline v6, I manually set IS_OFFLINE to either "true" or "false".
IS_OFFLINE
"true"
"false"
https://github.com/arabold/serverless-sentry-lib/blob/master/src/index.ts#L74 Should check for process.env.IS_OFFLINE === "true", as "false" is truthy and process.env.IS_OFFLINE will mistakenly return true
process.env.IS_OFFLINE === "true"
process.env.IS_OFFLINE
I've published 2.1.0 which explicitly checks for true, t, 1, on, or yes (similar to how the lib deals with the SENTRY_* environment vars already).
true
t
1
on
yes
SENTRY_*
Since serverless-offline v6, I manually set
IS_OFFLINE
to either"true"
or"false"
.https://github.com/arabold/serverless-sentry-lib/blob/master/src/index.ts#L74 Should check for
process.env.IS_OFFLINE === "true"
, as"false"
is truthy andprocess.env.IS_OFFLINE
will mistakenly return true