Add colours and Sentry feedback form

This commit is contained in:
Jade Ellis
2024-09-10 04:11:45 +01:00
parent 3ff04eba7e
commit d6da36314d
10 changed files with 294 additions and 147 deletions
+4 -3
View File
@@ -1,5 +1,5 @@
import { SENTRY_DSN } from '$lib/config';
import { init as initSentry, handleErrorWithSentry, makeBrowserOfflineTransport, makeFetchTransport } from '@sentry/sveltekit';
import { init as initSentry, handleErrorWithSentry, makeBrowserOfflineTransport, makeFetchTransport, feedbackIntegration } from '@sentry/sveltekit';
initSentry({
dsn: SENTRY_DSN,
@@ -14,8 +14,9 @@ initSentry({
// sessions when an error occurs.
replaysOnErrorSampleRate: 1.0,
// If you don't want to use Session Replay, just remove the line below:
// integrations: [replayIntegration()],
integrations: [feedbackIntegration({
autoInject: false,
})],
// To enable offline events caching, use makeBrowserOfflineTransport to wrap
// existing transports and queue events using the browsers' IndexedDB storage