lay the ground work for sentry integration

This commit is contained in:
Amruth Pillai
2022-11-25 11:32:57 +01:00
parent 77c587681b
commit aec78cf875
15 changed files with 461 additions and 5 deletions

View File

@ -0,0 +1,14 @@
import env from '@beam-australia/react-env';
import * as Sentry from '@sentry/nextjs';
const SENTRY_DSN = env('CLIENT_SENTRY_DSN');
console.log(SENTRY_DSN);
if (SENTRY_DSN) {
Sentry.init({
dsn: SENTRY_DSN,
tracesSampleRate: 1.0,
enabled: process.env.NODE_ENV === 'production',
});
}