mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix config
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
const rootDomain = process.env.VITE_DOMAIN; // or your server IP for dev
|
const rootDomain = process.env.VITE_DOMAIN; // or your server IP for dev
|
||||||
|
|
||||||
|
import { SENTRY_REPORT_URL } from './lib/config';
|
||||||
/**
|
/**
|
||||||
* @type {import("@sveltejs/kit").CspDirectives}
|
* @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
|
// remove report-to & report-uri if you do not want to use Sentry reporting
|
||||||
'report-to': ["'csp-endpoint'"],
|
'report-to': ["'csp-endpoint'"],
|
||||||
'report-uri': [
|
'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 {init as initSentry, handleErrorWithSentry, sentryHandle} from '@sentry/sveltekit';
|
||||||
import type { Handle } from "@sveltejs/kit";
|
import type { Handle } from "@sveltejs/kit";
|
||||||
import { randomBytes } from 'crypto';
|
import { randomBytes } from 'crypto';
|
||||||
import { SENTRY_DSN, SENTRY_REPORT_URL } from './lib/config';
|
import { SENTRY_DSN, SENTRY_REPORT_URL } from '$lib/config';
|
||||||
|
|
||||||
initSentry({
|
initSentry({
|
||||||
dsn: SENTRY_DSN,
|
dsn: SENTRY_DSN,
|
||||||
|
|||||||
Reference in New Issue
Block a user