Factor out Sentry URLs and set Sentry environment

This commit is contained in:
Jade Ellis
2024-08-27 18:51:11 +01:00
parent 687733bf7d
commit 8fbab1f87c
8 changed files with 21 additions and 9 deletions
+1 -3
View File
@@ -56,11 +56,9 @@ const cspDirectives = {
// remove report-to & report-uri if you do not want to use Sentry reporting
'report-to': ["'csp-endpoint'"],
'report-uri': [
'https://o4507835405369344.ingest.de.sentry.io/api/4507835410481232/security/?sentry_key=d006c73cc53783930a1521a68ae1c312',
process.env.SENTRY_REPORT_URL,
],
};
// Report-To: {"group":"csp-endpoint","max_age":10886400,"endpoints":[{"url":"https://o4507835405369344.ingest.de.sentry.io/api/4507835410481232/security/?sentry_key=d006c73cc53783930a1521a68ae1c312"}],"include_subdomains":true}
export default cspDirectives;