Skip to content

Commit 24baa82

Browse files
committed
fix(sentry): add null pointer check for sentry DSN to fix CI build
1 parent 8086e63 commit 24baa82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { LambdaLog } from 'lambda-log';
1919
import { parseAwsLambdaName } from './parser';
2020

2121
Sentry.init({
22-
dsn: `${process.env.SENTRY_DSN}`,
22+
dsn: process.env.SENTRY_DSN || '',
2323
environment: `${process.env.SERVERLESS_STAGE}`,
2424
});
2525

0 commit comments

Comments
 (0)