mirror of
https://github.com/LukeHagar/LukeHagar.com.git
synced 2025-12-06 04:20:17 +00:00
bumped deps, altered sentry implementation
This commit is contained in:
@@ -21,26 +21,24 @@
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
||||
"@tailwindcss/forms": "^0.5.3",
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"@tsparticles/svelte": "^3.0.0",
|
||||
"@types/node": "^20.10.6",
|
||||
"@typescript-eslint/eslint-plugin": "^6.17.0",
|
||||
"@typescript-eslint/parser": "^6.17.0",
|
||||
"@vercel/analytics": "^1.0.1",
|
||||
"atropos": "^2.0.2",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-svelte3": "^4.0.0",
|
||||
"postcss": "^8.4.24",
|
||||
"posthog-js": "^1.96.1",
|
||||
"prettier": "^3.1.1",
|
||||
"prettier-plugin-svelte": "^3.1.2",
|
||||
"svelte": "^4.0.0",
|
||||
"svelte-check": "^3.4.3",
|
||||
"@tsparticles/svelte": "^3.0.0",
|
||||
"svelte-preprocess": "^5.1.3",
|
||||
"tailwindcss": "^3.4.0",
|
||||
"tslib": "^2.5.2",
|
||||
"tsparticles": "^3.0.3",
|
||||
"tsparticles": "3.1.0",
|
||||
"typescript": "^5.0.4",
|
||||
"vite": "^5.0.0"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// This file is used to initialize Sentry on the client side.
|
||||
import { dev } from '$app/environment';
|
||||
import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit';
|
||||
import * as Sentry from '@sentry/sveltekit';
|
||||
|
||||
Sentry.init({
|
||||
@@ -18,8 +19,8 @@ Sentry.init({
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
|
||||
// If you don't want to use Session Replay, just remove the line below:
|
||||
integrations: [new Sentry.Replay()]
|
||||
integrations: [replayIntegration()]
|
||||
});
|
||||
|
||||
// If you have a custom error handler, pass it to `handleErrorWithSentry`
|
||||
export const handleError = Sentry.handleErrorWithSentry();
|
||||
export const handleError = handleErrorWithSentry();
|
||||
|
||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
@@ -1,8 +1,8 @@
|
||||
import { sentrySvelteKit } from '@sentry/sveltekit';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
sentrySvelteKit({
|
||||
sourceMapsUploadOptions: {
|
||||
@@ -14,10 +14,7 @@ const config = {
|
||||
}),
|
||||
sveltekit()
|
||||
],
|
||||
|
||||
ssr: {
|
||||
noExternal: ['tsparticles', 'tsparticles-slim', 'tsparticles-engine', 'svelte-particles'] // add all tsparticles libraries here, they're not made for SSR, they're client only
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
});
|
||||
Reference in New Issue
Block a user