Skip to content

Commit 2ddbe02

Browse files
sfanahataShannon Anahata
andauthored
Update short source map includes (#15046)
## DESCRIBE YOUR PR This include was missing useful details like a platform link to source maps docs, an a slight bit more details about why your code might not look like your code. Example places in use: - https://sentry-docs-git-update-source-map-short-includes.sentry.dev/platforms/javascript/guides/angular/manual-setup/#step-3-add-readable-stack-traces-with-source-maps-optional - https://sentry-docs-git-update-source-map-short-includes.sentry.dev/platforms/javascript/guides/vue/#step-3-add-readable-stack-traces-with-source-maps-optional - https://sentry-docs-git-update-source-map-short-includes.sentry.dev/platforms/javascript/guides/cloudflare/#step-3-add-readable-stack-traces-with-source-maps-optional ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) Co-authored-by: Shannon Anahata <[email protected]>
1 parent ed47cde commit 2ddbe02

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

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

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -114,25 +114,7 @@ export const onRequest = [
114114

115115
## Step 3: Add Readable Stack Traces With Source Maps (Optional)
116116

117-
The stack traces in your Sentry errors probably won't look like your actual code. To fix this, upload your source maps to Sentry.
118-
119-
First, set the `upload_source_maps` option to `true` in your `wrangler.(jsonc|toml)` config file to enable source map uploading:
120-
121-
```jsonc {tabTitle:JSON} {filename:wrangler.jsonc}
122-
{
123-
"upload_source_maps": true,
124-
}
125-
```
126-
127-
```toml {tabTitle:Toml} {filename:wrangler.toml}
128-
upload_source_maps = true
129-
```
130-
131-
Next, run the Sentry Wizard to finish your setup:
132-
133-
```bash
134-
npx @sentry/wizard@latest -i sourcemaps
135-
```
117+
<PlatformContent includePath="getting-started-sourcemaps-short-version" />
136118

137119
## Step 4: Verify Your Setup
138120

platform-includes/getting-started-sourcemaps-short-version/javascript.cloudflare.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The stack traces in your Sentry errors probably won't look like your actual code. To fix this, upload your source maps to Sentry.
1+
The stack traces in your Sentry errors probably won't look like your actual code without unminifying them. To fix this, upload your <PlatformLink to="/sourcemaps/">source maps</PlatformLink> to Sentry.
22

33
First, set the `upload_source_maps` option to `true` in your `wrangler.(jsonc|toml)` config file to enable source map uploading:
44

platform-includes/getting-started-sourcemaps-short-version/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The stack traces in your Sentry errors probably won't look like your actual code. To fix this, upload your source maps to Sentry. The easiest way to do this is by using the Sentry Wizard:
1+
The stack traces in your Sentry errors probably won't look like your actual code without unminifying them. To fix this, upload your <PlatformLink to="/sourcemaps/">source maps</PlatformLink> to Sentry. The easiest way to do this is by using the Sentry Wizard:
22

33
```bash
44
npx @sentry/wizard@latest -i sourcemaps

0 commit comments

Comments
 (0)