-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs(svelteKit): Update build-time options for source maps #15283
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,38 +22,42 @@ The Sentry SvelteKit SDK supports automatic code instrumentation and source map | |
|
|
||
| <TableOfContents ignoreIds={["available-options"]} /> | ||
|
|
||
| ## Source Maps Options | ||
| ## General Options | ||
|
|
||
| Those options can be set on the root level of the `sentrySvelteKit` configuration object. Most of them are relevant for the source map upload process. | ||
|
|
||
| <SdkOption name="sourceMapsUploadOptions.org" type="string" envVar="SENTRY_ORG"> | ||
| <SdkOption name="org" type="string" envVar="SENTRY_ORG"> | ||
|
|
||
| The slug of the Sentry organization associated with the app. | ||
| The slug of the Sentry organization associated with the app. | ||
|
|
||
| </SdkOption> | ||
|
|
||
| <SdkOption name="sourceMapsUploadOptions.project" type="string" envVar="SENTRY_PROJECT"> | ||
| <SdkOption name="project" type="string" envVar="SENTRY_PROJECT"> | ||
|
|
||
| The slug of the Sentry project associated with the app. | ||
| The slug of the Sentry project associated with the app. | ||
|
|
||
| </SdkOption> | ||
|
|
||
| <SdkOption name="sourceMapsUploadOptions.authToken" type="string" envVar="SENTRY_AUTH_TOKEN"> | ||
| <SdkOption name="authToken" type="string" envVar="SENTRY_AUTH_TOKEN"> | ||
|
|
||
| The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/. | ||
| The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/. | ||
|
|
||
| </SdkOption> | ||
|
|
||
| <SdkOption name="sourceMapsUploadOptions.url" type="string" envVar="SENTRY_URL" defaultValue="https://sentry.io/"> | ||
| <SdkOption name="sentryUrl" type="string" envVar="SENTRY_URL" defaultValue="https://sentry.io/"> | ||
|
|
||
| The base URL of your Sentry instance. Only relevant if you're using a self-hosted or Sentry instance other than sentry.io. | ||
| The base URL of your Sentry instance. Only relevant if you're using a self-hosted or Sentry instance other than sentry.io. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a case where someone is using a different Sentry instance that isn't self-hosted? Or can this be simplified to "Only relevant if you're using a self-hosted Sentry instance."?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, but I would still include the first sentence as it explains what it is. |
||
|
|
||
| </SdkOption> | ||
|
|
||
| <SdkOption name="adapter" type="string"> | ||
|
|
||
| By default, `sentrySvelteKit` will try to detect your SvelteKit adapter to configure the source maps upload correctly. If you're not using one of the [supported adapters](/platforms/javascript/guides/sveltekit/) or the wrong one is detected, you can override the adapter detection using the `adapter` option. | ||
| By default, `sentrySvelteKit` will try to detect your SvelteKit adapter to configure the source maps upload correctly. If you're not using one of the [supported adapters](/platforms/javascript/guides/sveltekit/) or the wrong one is detected, you can override the adapter detection using the `adapter` option. | ||
|
|
||
| </SdkOption> | ||
|
|
||
| ## Source Maps Options | ||
|
|
||
| <SdkOption name="autoUploadSourceMaps" type="boolean"> | ||
|
|
||
| Disable automatic source maps upload by setting `autoUploadSourceMaps` to `false`. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.