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": {
|
"dependencies": {
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@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",
|
"@supabase/supabase-js": "^1.20.0",
|
||||||
"@tailwindcss/forms": "^0.3.2",
|
"@tailwindcss/forms": "^0.3.2",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
|
|||||||
@@ -1,4 +1,25 @@
|
|||||||
import * as sapper from '@sapper/app';
|
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({
|
sapper.start({
|
||||||
target: document.querySelector('#sapper'),
|
target: document.querySelector('#sapper'),
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
// isProd: process.env.NODE_ENV === 'development',
|
isProd: process.env.NODE_ENV !== 'development',
|
||||||
supabaseConfig: {
|
supabaseConfig: {
|
||||||
bucketPath:
|
bucketPath:
|
||||||
'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
|
'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
|
||||||
|
|||||||
Reference in New Issue
Block a user