Skip to content

Only load Sentry on the production site - #282

Merged
oskarrough merged 1 commit into
mainfrom
sentry-prod-only
Oct 22, 2026
Merged

oskarrough merged 1 commit into
mainfrom
sentry-prod-only

Conversation

@oskarrough

Copy link
Copy Markdown
Owner

Sentry was loaded on every host except localhost, so forks, previews and copies hosted elsewhere (e.g. run.app, see SLAYTHEWEB-M1) were sending errors to our project.

Now the Sentry loader only runs on slaytheweb.cards and www.slaytheweb.cards. As a second layer, allowUrls limits reported errors to scripts served from those origins. Nothing else in the codebase calls Sentry, so there is nothing to break when it isn't loaded.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Deploying slaytheweb with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0394db6
Status: ✅  Deploy successful!
Preview URL: https://6c5862c0.slaytheweb.pages.dev
Branch Preview URL: https://sentry-prod-only.slaytheweb.pages.dev

View logs

@oskarrough
oskarrough merged commit d65613a into main Oct 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant