Fix config
This commit is contained in:
parent
29e9442c2d
commit
7910d2f774
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const rootDomain = process.env.VITE_DOMAIN; // or your server IP for dev
|
||||
|
||||
import { SENTRY_REPORT_URL } from './lib/config';
|
||||
/**
|
||||
* @type {import("@sveltejs/kit").CspDirectives}
|
||||
*/
|
||||
|
|
@ -56,7 +57,7 @@ const cspDirectives = {
|
|||
// remove report-to & report-uri if you do not want to use Sentry reporting
|
||||
'report-to': ["'csp-endpoint'"],
|
||||
'report-uri': [
|
||||
process.env.SENTRY_REPORT_URL,
|
||||
SENTRY_REPORT_URL,
|
||||
],
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { sequence } from '@sveltejs/kit/hooks';
|
|||
import {init as initSentry, handleErrorWithSentry, sentryHandle} from '@sentry/sveltekit';
|
||||
import type { Handle } from "@sveltejs/kit";
|
||||
import { randomBytes } from 'crypto';
|
||||
import { SENTRY_DSN, SENTRY_REPORT_URL } from './lib/config';
|
||||
import { SENTRY_DSN, SENTRY_REPORT_URL } from '$lib/config';
|
||||
|
||||
initSentry({
|
||||
dsn: SENTRY_DSN,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue