Fix config

This commit is contained in:
Jade Ellis 2024-08-27 19:45:53 +01:00
parent 29e9442c2d
commit 7910d2f774
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
2 changed files with 3 additions and 2 deletions

View file

@ -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,
],
};

View file

@ -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,