mirror of
https://github.com/danbulant/Mangades
synced 2026-07-07 12:00:36 +00:00
attempt to fix error
This commit is contained in:
parent
96bb83b304
commit
888480623c
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import { BrowserTracing } from "@sentry/tracing";
|
||||||
export function load({ url, event }) {
|
export function load({ url, event }) {
|
||||||
let sentry;
|
let sentry;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if(import.meta.env.VITE_SENTRY_DSN) if(typeof window === 'undefined') {
|
if(import.meta.env.VITE_SENTRY_DSN && typeof event !== "undefined") if(typeof window === 'undefined') {
|
||||||
sentry = new Toucan({
|
sentry = new Toucan({
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
dsn: import.meta.env.VITE_SENTRY_DSN,
|
dsn: import.meta.env.VITE_SENTRY_DSN,
|
||||||
|
|
@ -27,6 +27,7 @@ export function load({ url, event }) {
|
||||||
'content-type',
|
'content-type',
|
||||||
'x-real-ip',
|
'x-real-ip',
|
||||||
'host',
|
'host',
|
||||||
|
'cf-ipcountry'
|
||||||
],
|
],
|
||||||
allowedSearchParams: /(.*)/
|
allowedSearchParams: /(.*)/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue