Skip to content

Conversation

@buenaflor
Copy link
Contributor

@buenaflor buenaflor commented Jul 26, 2025

DESCRIBE YOUR PR

This PR adds a new guide for setting up the Sentry Flutter SDK with Flutter Web applications deployed as Chrome Extensions.

Due to Chrome's Content Security Policy (CSP) restrictions, dynamically loaded scripts are not allowed. This guide explains how to set up the SDK in that scenario

Closes getsentry/sentry-dart#3072

@vercel
Copy link

vercel bot commented Jul 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2025 9:58pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2025 9:58pm

@codeowner-assignment codeowner-assignment bot requested a review from a team July 26, 2025 22:40
@buenaflor buenaflor changed the title Set up flutter web for chrome extensions [DRAFT] Set up flutter web for chrome extensions Jul 26, 2025
@codecov
Copy link

codecov bot commented Jul 26, 2025

Bundle Report

Changes will increase total bundle size by 957 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.85MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.34MB 963 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.81kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/kKtDjdnvGd3XfZVsMN4Tn/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/kKtDjdnvGd3XfZVsMN4Tn/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/7aLVhPot6tGeFhC7SbbJ2/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/7aLVhPot6tGeFhC7SbbJ2/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.77MB -0.0%
../instrumentation.js -3 bytes 1.1MB -0.0%
9523.js -3 bytes 1.08MB -0.0%
../app/[[...path]]/page.js.nft.json 324 bytes 732.96kB 0.04%
../app/platform-redirect/page.js.nft.json 324 bytes 732.88kB 0.04%
../app/sitemap.xml/route.js.nft.json 324 bytes 730.35kB 0.04%

@buenaflor buenaflor changed the title [DRAFT] Set up flutter web for chrome extensions Set up flutter web for chrome extensions Jul 31, 2025
@buenaflor buenaflor marked this pull request as ready for review July 31, 2025 10:01
@buenaflor buenaflor changed the title Set up flutter web for chrome extensions feat(flutter): docs for setting up flutter web for chrome extensions Jul 31, 2025
Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

Left a couple of comments, let me know what you think 🤙

@buenaflor
Copy link
Contributor Author

@coolguyzone forgot about this one, can you have another look pls

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

Looks good!

@buenaflor buenaflor merged commit 65a3fcb into master Oct 30, 2025
13 checks passed
@buenaflor buenaflor deleted the cursor/set-up-flutter-web-for-chrome-extensions-1df2 branch October 30, 2025 08:30
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSP issues when flutter app is ran as chrome extension

4 participants