CLASSROOMIO-T-24: Add sentry
This commit is contained in:
Generated
+6877
-157
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@sentry/browser": "^6.13.3",
|
||||
"@sentry/integrations": "^6.13.3",
|
||||
"@sentry/tracing": "^6.13.3",
|
||||
"@supabase/supabase-js": "^1.20.0",
|
||||
"@tailwindcss/forms": "^0.3.2",
|
||||
"body-parser": "^1.19.0",
|
||||
|
||||
@@ -1,4 +1,25 @@
|
||||
import * as sapper from '@sapper/app';
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import { Integrations } from '@sentry/tracing';
|
||||
import { CaptureConsole } from '@sentry/integrations';
|
||||
import config from './config';
|
||||
|
||||
console.log(`isProd`, config.isProd);
|
||||
|
||||
Sentry.init({
|
||||
dsn: 'https://[email protected]/5999999',
|
||||
integrations: [
|
||||
new Integrations.BrowserTracing(),
|
||||
new CaptureConsole({
|
||||
levels: ['error'],
|
||||
}),
|
||||
],
|
||||
environment: config.isProd ? 'production' : 'development',
|
||||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for performance monitoring.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0,
|
||||
});
|
||||
|
||||
sapper.start({
|
||||
target: document.querySelector('#sapper'),
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
export default {
|
||||
// isProd: process.env.NODE_ENV === 'development',
|
||||
isProd: process.env.NODE_ENV !== 'development',
|
||||
supabaseConfig: {
|
||||
bucketPath:
|
||||
'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
|
||||
|
||||
Reference in New Issue
Block a user