Skip to content

Conversation

@brianhelba
Copy link
Member

This ensures that sourcemaps will be uploaded during the release build and that events will only upload in the release environment.

This ensures that sourcemaps will be uploaded during the
release build and that events will only upload in the
release environment.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 6, 2026

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0413599
Status: ✅  Deploy successful!
Preview URL: https://407619e5.bats-ai.pages.dev
Branch Preview URL: https://sentry-frontend.bats-ai.pages.dev

View logs

release: __COMMIT_HASH__,
});
}
Sentry.init({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like all Sentry SDKs, this has no effect if the DSN isn't defined.

sentryVitePlugin({
org: "kitware-data",
project: "bats-ai-client",
release: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the docs, this will also bake the release into future error calls at runtime.

strictPort: true,
},
build: {
sourcemap: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be nice for developers to inspect production code in their browser too.

locals {
www_env_vars = {
VITE_APP_API_ROOT = "https://${module.django.fqdn}"
VITE_APP_SENTRY_DSN = "https://a224627951abd0f0606d8578cacef5d6@o267860.ingest.us.sentry.io/4510829950730240"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branch previews shouldn't have a DSN, to avoid creating Sentry spam for PR content.

@brianhelba brianhelba merged commit de13327 into main Feb 6, 2026
7 checks passed
@brianhelba brianhelba deleted the sentry-frontend branch February 6, 2026 20:20
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.

2 participants