diff --git a/docs/platforms/javascript/guides/astro/index.mdx b/docs/platforms/javascript/guides/astro/index.mdx
index 8a9e9f5616482..4c9ea2004fb23 100644
--- a/docs/platforms/javascript/guides/astro/index.mdx
+++ b/docs/platforms/javascript/guides/astro/index.mdx
@@ -86,11 +86,9 @@ import sentry from "@sentry/astro";
export default defineConfig({
integrations: [
sentry({
- sourceMapsUploadOptions: {
- project: "___PROJECT_SLUG___",
- org: "___ORG_SLUG___",
- authToken: process.env.SENTRY_AUTH_TOKEN,
- },
+ project: "___PROJECT_SLUG___",
+ org: "___ORG_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
});
@@ -208,7 +206,7 @@ To get readable stack traces in your production builds, set the `SENTRY_AUTH_TOK
SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
```
-This, in combination with your `sourceMapsUploadOptions` configuration, will upload source maps to Sentry every time you make a production build.
+This, in combination with your `sentry` integration configuration, will upload source maps to Sentry every time you make a production build.
## Verify
diff --git a/platform-includes/configuration/filter-application-key/javascript.astro.mdx b/platform-includes/configuration/filter-application-key/javascript.astro.mdx
index ede088de3021d..afaf0b4352a08 100644
--- a/platform-includes/configuration/filter-application-key/javascript.astro.mdx
+++ b/platform-includes/configuration/filter-application-key/javascript.astro.mdx
@@ -2,10 +2,8 @@
export default defineConfig({
integrations: [
sentry({
- sourceMapsUploadOptions: {
- unstable_sentryVitePluginOptions: {
- applicationKey: "your-custom-application-key",
- },
+ unstable_sentryVitePluginOptions: {
+ applicationKey: "your-custom-application-key",
},
}),
],
diff --git a/platform-includes/getting-started-complete/javascript.nuxt.mdx b/platform-includes/getting-started-complete/javascript.nuxt.mdx
index fe981b2ce2e8f..5b2490d2b55f2 100644
--- a/platform-includes/getting-started-complete/javascript.nuxt.mdx
+++ b/platform-includes/getting-started-complete/javascript.nuxt.mdx
@@ -222,7 +222,7 @@ export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp
## Step 3: Add Readable Stack Traces With Source Maps (Optional)
-To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slugs in the `sentry.sourceMapsUploadOptions` inside your configuration file:
+To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slugs in the `sentry` options inside your configuration file:
These `sentry` options only affect the **build time** of the SDK.
@@ -230,12 +230,10 @@ To upload source maps for clear error stack traces, add your Sentry auth token,
export default defineNuxtConfig({
modules: ["@sentry/nuxt/module"],
sentry: {
- sourceMapsUploadOptions: {
- org: "___ORG_SLUG___",
- project: "___PROJECT_SLUG___",
- // store your auth token in an environment variable
- authToken: process.env.SENTRY_AUTH_TOKEN,
- },
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ // store your auth token in an environment variable
+ authToken: process.env.SENTRY_AUTH_TOKEN,
},
});
```
diff --git a/platform-includes/sourcemaps/legacy-uploading-methods/javascript.mdx b/platform-includes/sourcemaps/legacy-uploading-methods/javascript.mdx
index e874398dfa449..9abc0c011f89e 100644
--- a/platform-includes/sourcemaps/legacy-uploading-methods/javascript.mdx
+++ b/platform-includes/sourcemaps/legacy-uploading-methods/javascript.mdx
@@ -57,18 +57,16 @@ sentry-cli sourcemaps upload --release= /path/to/directory
## Working With Old Authentication Tokens
-Source maps work best with [organization-scoped auth tokens](/account/auth-tokens/#organization-tokens). If you are using an old self-hosted Sentry version that doesn't yet support org-based tokens or you're using a different type of Sentry auth token, you'll need to additionally specify your `org` slug in your `sourceMapsUploadOptions`:
+Source maps work best with [organization-scoped auth tokens](/account/auth-tokens/#organization-tokens). If you are using an old self-hosted Sentry version that doesn't yet support org-based tokens or you're using a different type of Sentry auth token, you'll need to additionally specify your `org` slug in your `sentry` integration options:
```javascript {filename:astro.config.mjs}
export default defineConfig({
integrations: [
sentry({
// Other Sentry options
- sourceMapsUploadOptions: {
- project: "___PROJECT_SLUG___",
- org: "___ORG_SLUG___",
- authToken: process.env.SENTRY_AUTH_TOKEN,
- },
+ project: "___PROJECT_SLUG___",
+ org: "___ORG_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
});
diff --git a/platform-includes/sourcemaps/overview/javascript.astro.mdx b/platform-includes/sourcemaps/overview/javascript.astro.mdx
index 79bfd6d823460..4a9f65f69b371 100644
--- a/platform-includes/sourcemaps/overview/javascript.astro.mdx
+++ b/platform-includes/sourcemaps/overview/javascript.astro.mdx
@@ -12,17 +12,16 @@ To automatically upload source maps during production builds, add the `SENTRY_AU
SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
```
-Next, add your project slug to the `sourceMapsUploadOptions` in your Astro config:
+Next, add your project slug to the `sentry` integration options in your Astro config:
```javascript {filename:astro.config.mjs}
export default defineConfig({
integrations: [
sentry({
- // Other Sentry options
- sourceMapsUploadOptions: {
- project: "___PROJECT_SLUG___",
- authToken: process.env.SENTRY_AUTH_TOKEN,
- },
+ // Other Sentry build-time options
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
});
@@ -30,7 +29,7 @@ export default defineConfig({
### Disable Source Maps Upload
-You can disable automatic source maps upload in your Astro configuration with `enabled: false` under `sourceMapsUploadOptions`
+You can disable automatic source maps upload in your Astro configuration with `disable: true` under `sourcemaps` in the `sentry` integration options.
### Setting the Source Maps Assets Directory
@@ -41,7 +40,7 @@ If these defaults don't work for you (for example, due to an advanced customized
export default defineConfig({
integrations: [
sentry({
- sourceMapsUploadOptions: {
+ sourcemaps: {
assets: [".clientOut/**/*", ".serverOut/**/*"],
},
}),
@@ -61,4 +60,4 @@ Source maps work best with [organization-scoped auth tokens](/account/auth-token
The Astro SDK uses the Sentry Vite plugin to upload source maps.
This plugin collects telemetry data to help us improve the source map uploading experience.
Read more about this in our [Vite plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin#telemetry).
-You can disable telemetry collection by setting `telemetry:false` under `sourceMapsUploadOptions`.
+You can disable telemetry collection by setting `telemetry: false` in the `sentry` integration options.
diff --git a/platform-includes/sourcemaps/primer/javascript.nuxt.mdx b/platform-includes/sourcemaps/primer/javascript.nuxt.mdx
index 00c9c6cae25a5..7e253c72425d0 100644
--- a/platform-includes/sourcemaps/primer/javascript.nuxt.mdx
+++ b/platform-includes/sourcemaps/primer/javascript.nuxt.mdx
@@ -2,7 +2,7 @@
## Configure Source Maps Upload
-To automatically upload source maps, you need to provide your Sentry auth token, your organization, and project slugs to the `sentry.sourceMapsUploadOptions` in your Nuxt config:
+To automatically upload source maps, you need to provide your Sentry auth token, your organization, and project slugs to the `sentry` options in your Nuxt config:
@@ -10,11 +10,9 @@ To automatically upload source maps, you need to provide your Sentry auth token,
export default defineNuxtConfig({
modules: ["@sentry/nuxt/module"],
sentry: {
- sourceMapsUploadOptions: {
- org: "___ORG_SLUG___",
- project: "___PROJECT_SLUG___",
- authToken: "___ORG_AUTH_TOKEN___",
- },
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: "___ORG_AUTH_TOKEN___",
},
});
```