mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
fix: sentry
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { building } from '$app/environment';
|
||||
import { dev } from '$app/environment';
|
||||
import { SENTRY_DSN } from '$lib/constants';
|
||||
import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit';
|
||||
import * as Sentry from '@sentry/sveltekit';
|
||||
|
||||
Sentry.init({
|
||||
enabled: !!import.meta.env?.SENTRY_AUTH_TOKEN && building,
|
||||
enabled: !!import.meta.env?.SENTRY_AUTH_TOKEN && !dev,
|
||||
dsn: SENTRY_DSN,
|
||||
tracesSampleRate: 1.0,
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ import type { Handle } from '@sveltejs/kit';
|
||||
import redirects from './redirects.json';
|
||||
import { sequence } from '@sveltejs/kit/hooks';
|
||||
import { BANNER_KEY, SENTRY_DSN } from '$lib/constants';
|
||||
import { building } from '$app/environment';
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
Sentry.init({
|
||||
enabled: !!import.meta.env?.SENTRY_AUTH_TOKEN && building,
|
||||
enabled: !!import.meta.env?.SENTRY_AUTH_TOKEN && !dev,
|
||||
dsn: SENTRY_DSN,
|
||||
tracesSampleRate: 1
|
||||
})
|
||||
|
||||
1
src/routes/sentry-example/+page.ts
Normal file
1
src/routes/sentry-example/+page.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const prerender = false;
|
||||
@@ -8,6 +8,7 @@ import { enhancedImages } from '@sveltejs/enhanced-img';
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
sentrySvelteKit({
|
||||
adapter: 'node',
|
||||
sourceMapsUploadOptions: {
|
||||
org: 'appwrite',
|
||||
project: 'website'
|
||||
|
||||
Reference in New Issue
Block a user