File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export default function (app: Express) {
113113 }
114114
115115 // *** Observability ***
116- if ( process . env . MODA_PROD_SERVICE_ENV ) {
116+ if ( process . env . MODA_PROD_SERVICE_ENV === 'true' ) {
117117 app . use ( datadog )
118118 }
119119
Original file line number Diff line number Diff line change 99 DD_AGENT_HOST ,
1010} = process . env
1111
12- const mock = NODE_ENV === 'test' || ! MODA_PROD_SERVICE_ENV
12+ const mock = NODE_ENV === 'test' || MODA_PROD_SERVICE_ENV !== 'true'
1313
1414// MODA_APP_NAME gets set when the deploy target is Moda
1515const modaApp = MODA_APP_NAME ? `moda_app_name:${ MODA_APP_NAME } ` : false
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ export default async function triggerError(
1515 // pattern used on async middleware! This is an intentional omission!
1616
1717 // prevent this from being used in production
18- if ( process . env . NODE_ENV === 'production' && process . env . MODA_PROD_SERVICE_ENV ) return next ( )
18+ if ( process . env . NODE_ENV === 'production' && process . env . MODA_PROD_SERVICE_ENV === 'true' )
19+ return next ( )
1920
2021 throw new Error ( 'Intentional error' )
2122}
You can’t perform that action at this time.
0 commit comments