-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Create wrangler sourcemaps guide for Cloudflare #14089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create wrangler sourcemaps guide for Cloudflare #14089
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Bundle ReportChanges will increase total bundle size by 711 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-client-array-pushAssets Changed:
view changes for bundle: sentry-docs-server-cjsAssets Changed:
|
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| ## Manual Setup | ||
|
|
||
| ### 1. Install Sentry CLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### 1. Install Sentry CLI | |
| ### 1. Install the Sentry CLI |
|
|
||
| ### 1. Install Sentry CLI | ||
|
|
||
| First, install Sentry CLI as a dev dependency: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| First, install Sentry CLI as a dev dependency: | |
| First, install the Sentry CLI as a dev dependency: |
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| 1. Going to **Project Settings > Source Maps** in Sentry | ||
| 2. Checking for your release in the "Artifact Bundles" tab | ||
| 3. Confirming that source maps are working by triggering an error and checking that the stack trace shows your original source code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a screenshot or arcade here to demonstrate how this looks in the product.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add this in a follow-up!
|
|
||
| If you encounter build errors when adding source map flags: | ||
|
|
||
| 1. Make sure you're using a recent version of Wrangler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a minimum version of Wrangler that's a prerequisite here? If so, let's specify.
platform-includes/sourcemaps/overview/javascript.cloudflare.mdx
Outdated
Show resolved
Hide resolved
platform-includes/sourcemaps/overview/javascript.cloudflare.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| ## Other Tools | ||
|
|
||
| If you're not using one of these tools, we assume you already know how to generate source maps with your toolchain and we recommend you upload them using <PlatformLink to="/sourcemaps/uploading/cli/">Sentry CLI</PlatformLink>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| If you're not using one of these tools, we assume you already know how to generate source maps with your toolchain and we recommend you upload them using <PlatformLink to="/sourcemaps/uploading/cli/">Sentry CLI</PlatformLink>. | |
| If you're not using one of these tools, we assume you already know how to generate source maps with your toolchain and we recommend you upload them using the <PlatformLink to="/sourcemaps/uploading/cli/">Sentry CLI</PlatformLink>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Please see the comment regarding the duplicated content.
Co-authored-by: Alex Krawiec <[email protected]>
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx
Outdated
Show resolved
Hide resolved
Documents the changes from getsentry/sentry-wizard#999 ref getsentry/sentry-javascript#14841 A new sourcemaps guide for Wrangler was added to the Cloudflare documentation. * A new guide, `docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx`, was created. * It details both automatic setup via the Sentry Wizard and manual configuration. * Manual steps include installing `@sentry/cli`, configuring `sentry-cli`, and modifying the `package.json` scripts. * The `deploy` script is updated to include `--outdir`, `--upload-source-maps`, and `--var SENTRY_RELEASE:$(sentry-cli releases propose-version)`. * A `sentry:sourcemaps` script is added to create releases and upload sourcemaps. * A `postdeploy` script is introduced to automatically run the `sentry:sourcemaps` command after deployment. * Instructions for configuring the Sentry SDK with `release: env.SENTRY_RELEASE` are provided. * The guide is marked as `supported: [javascript.cloudflare]` to ensure platform-specific visibility. * `platform-includes/sourcemaps/overview/javascript.cloudflare.mdx` was updated to include a "Cloudflare-Specific Tools" section, linking to the new Wrangler guide. * `platform-includes/sourcemaps/upload/primer/javascript.cloudflare.mdx` was modified to include the updated Cloudflare overview. These changes ensure that Wrangler users have a dedicated guide for sourcemap uploads, integrated seamlessly into the Cloudflare platform documentation. --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Alex Krawiec <[email protected]>
Documents the changes from getsentry/sentry-wizard#999
ref getsentry/sentry-javascript#14841
A new sourcemaps guide for Wrangler was added to the Cloudflare documentation.
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx, was created.@sentry/cli, configuringsentry-cli, and modifying thepackage.jsonscripts.deployscript is updated to include--outdir,--upload-source-maps, and--var SENTRY_RELEASE:$(sentry-cli releases propose-version).sentry:sourcemapsscript is added to create releases and upload sourcemaps.postdeployscript is introduced to automatically run thesentry:sourcemapscommand after deployment.release: env.SENTRY_RELEASEare provided.supported: [javascript.cloudflare]to ensure platform-specific visibility.platform-includes/sourcemaps/overview/javascript.cloudflare.mdxwas updated to include a "Cloudflare-Specific Tools" section, linking to the new Wrangler guide.platform-includes/sourcemaps/upload/primer/javascript.cloudflare.mdxwas modified to include the updated Cloudflare overview.These changes ensure that Wrangler users have a dedicated guide for sourcemap uploads, integrated seamlessly into the Cloudflare platform documentation.