Skip to content

Commit e96dc5b

Browse files
authored
feat(cloudflare): Add jsonc instructions for sourcemaps upload (#13572)
1 parent 88896e0 commit e96dc5b

File tree

1 file changed

+11
-1
lines changed
  • docs/platforms/javascript/guides/cloudflare

1 file changed

+11
-1
lines changed

docs/platforms/javascript/guides/cloudflare/index.mdx

+11-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,17 @@ Depending on how you've set up your project, the stack traces in your Sentry err
139139

140140
To fix this, upload your source maps to Sentry.
141141

142-
To start, add `upload_source_maps = true` to your `wrangler.toml` file to enable source map uploading.
142+
To start, set the `upload_source_maps` option to `true` in your wrangler config file to enable source map uploading.
143+
144+
```jsonc {tabTitle:JSON} {filename:wrangler.jsonc}
145+
{
146+
"upload_source_maps": true,
147+
}
148+
```
149+
150+
```toml {tabTitle:Toml} {filename:wrangler.toml}
151+
upload_source_maps = true
152+
```
143153

144154
Then run the Sentry Wizard to finish your setup:
145155

0 commit comments

Comments
 (0)