Skip to content

Commit b2f9add

Browse files
committed
Update
1 parent 7685893 commit b2f9add

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

docs/platforms/dart/guides/flutter/configuration/chrome-extensions.mdx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Instead of loading the Sentry JavaScript SDK dynamically, you need to include it
2121
https://browser.sentry-cdn.com/9.40.0/bundle.tracing.min.js
2222
```
2323

24-
2. Save this file to your Flutter web project's `web/` directory.
24+
2. Save this file to your Flutter Web project's `web/` directory.
2525

2626
### 2. Include the Script in Your HTML
2727

@@ -42,16 +42,7 @@ Add the Sentry JavaScript bundle to your `web/index.html` file:
4242

4343
### 3. Configure Your Flutter Build
4444

45-
When building your Flutter web app for Chrome Extensions, use the following build command to ensure compatibility:
46-
47-
```bash
48-
flutter build web --no-web-resources-cdn --pwa-strategy=none --source-maps
49-
```
50-
51-
**Build flags explained:**
52-
- `--no-web-resources-cdn`: Prevents Flutter from loading resources from external CDNs, which may be blocked by CSP
53-
- `--pwa-strategy=none`: Disables Progressive Web App features that may conflict with extension policies
54-
- `--source-maps`: Generates source maps for better debugging and error reporting
45+
Build your Flutter Web app for Chrome Extensions.
5546

5647
### 4. Upload Source Maps
5748

0 commit comments

Comments
 (0)