-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/dashboard
- Loading branch information
Showing
8 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,4 @@ | |
"@socket.tech/ll-core-v2": "^0.0.68" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { handleErrorWithSentry, Replay } from '@sentry/sveltekit'; | ||
import * as Sentry from '@sentry/sveltekit'; | ||
|
||
import { dev } from '$app/environment'; | ||
|
||
Sentry.init({ | ||
dsn: 'https://15841eeeac40ad075e756df391e51793@o4506180497899520.ingest.sentry.io/4506180501241856', | ||
tracesSampleRate: 1.0, | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
// If you don't want to use Session Replay, just remove the line below: | ||
integrations: [new Replay()], | ||
|
||
environment: dev ? 'development' : 'production' | ||
}); | ||
|
||
// If you have a custom error handler, pass it to `handleErrorWithSentry` | ||
export const handleError = handleErrorWithSentry(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { handleErrorWithSentry, sentryHandle } from '@sentry/sveltekit'; | ||
import * as Sentry from '@sentry/sveltekit'; | ||
import { sequence } from '@sveltejs/kit/hooks'; | ||
|
||
import { dev } from '$app/environment'; | ||
|
||
Sentry.init({ | ||
dsn: 'https://15841eeeac40ad075e756df391e51793@o4506180497899520.ingest.sentry.io/4506180501241856', | ||
tracesSampleRate: 1.0, | ||
environment: dev ? 'development' : 'production' | ||
}); | ||
|
||
// If you have custom handlers, make sure to place them after `sentryHandle()` in the `sequence` function. | ||
export const handle = sequence(sentryHandle()); | ||
|
||
// If you have a custom error handler, pass it to `handleErrorWithSentry` | ||
export const handleError = handleErrorWithSentry(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import { sentrySvelteKit } from '@sentry/sveltekit'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { defineConfig } from 'vite'; | ||
import { purgeCss } from 'vite-plugin-tailwind-purgecss'; | ||
|
||
export default defineConfig({ | ||
plugins: [sveltekit(), purgeCss()] | ||
plugins: [ | ||
sentrySvelteKit({ | ||
autoUploadSourceMaps: false, | ||
// sourceMapsUploadOptions: { | ||
// org: 'zaibon', | ||
// project: 'commitkudos', | ||
// }, | ||
adapter: 'vercel' | ||
}), | ||
sveltekit(), | ||
purgeCss() | ||
] | ||
}); |