From 3748956e5ded0751c7bc9353a6649a8b41bd6371 Mon Sep 17 00:00:00 2001 From: josephsmendoza Date: Tue, 1 Oct 2024 00:47:50 -0700 Subject: [PATCH] add hostname to sentry init --- config.html | 1 + js/script.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.html b/config.html index e197f86..4dd73d6 100644 --- a/config.html +++ b/config.html @@ -99,6 +99,7 @@ import('https://cdn.jsdelivr.net/npm/@sentry/browser@8/+esm').then(sentry=>{ sentry.init({ dsn:'https://f5fe0dec9f2f42dc80153b67e7e00dd0@app.glitchtip.com/8359', + environment:location.hostname, integrations: [ sentry.feedbackIntegration({colorScheme:"light"}) ] diff --git a/js/script.js b/js/script.js index 210234d..235d080 100644 --- a/js/script.js +++ b/js/script.js @@ -1,6 +1,7 @@ import('https://cdn.jsdelivr.net/npm/@sentry/browser@8/+esm').then(sentry=>{ sentry.init({ - dsn:'https://f5fe0dec9f2f42dc80153b67e7e00dd0@app.glitchtip.com/8359' + dsn:'https://f5fe0dec9f2f42dc80153b67e7e00dd0@app.glitchtip.com/8359', + environment:location.hostname, }) }).catch(e=>{ console.warn('automatic error reporting failed to load',e)