Skip to content

Commit e6360a2

Browse files
committed
sentry bug
1 parent c195002 commit e6360a2

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/codingcatdev/src/hooks.client.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { handleErrorWithSentry, Replay } from '@sentry/sveltekit';
22
import * as Sentry from '@sentry/sveltekit';
33

44
Sentry.init({
5+
enabled: import.meta.env.PROD,
56
dsn: 'https://518fe25472568a2e47252e6f29583c6b@o1029244.ingest.sentry.io/4506190917206016',
67
tracesSampleRate: 1.0,
78

‎apps/codingcatdev/src/hooks.server.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { redirect, type Handle } from '@sveltejs/kit';
44
import { env } from '$env/dynamic/private';
55

66
Sentry.init({
7+
enabled: import.meta.env.PROD,
78
dsn: 'https://518fe25472568a2e47252e6f29583c6b@o1029244.ingest.sentry.io/4506190917206016',
89
tracesSampleRate: 1,
910
environment: env.VERCEL_ENV || 'local'

‎apps/codingcatdev/src/routes/+layout.svelte‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
let topLevelPage: boolean | undefined = false;
9494
page.subscribe((page) => {
9595
topLevelPage = page?.route?.id?.includes('top-level-pages');
96-
console.log(topLevelPage);
9796
9897
content = page?.data?.content || page?.data?.course;
9998
authors = page?.data?.authors;

0 commit comments

Comments
 (0)