You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Cleanup Astro upload page
Astro's source map uploads includes a lot of snippet variations. I think this is distracting and we can stick what we promtoe and reduce the rest, and move the legacy token to the legacy uploading methods
* Moving to legacy upload
cuts down the main page
* Update javascript.astro.mdx
fix code text formatting
Source maps work best with [organization-scoped auth tokens](/product/accounts/auth-tokens/#organization-auth-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`:
61
+
62
+
```javascript {filename:astro.config.mjs}
63
+
exportdefaultdefineConfig({
64
+
integrations: [
65
+
sentry({
66
+
// Other Sentry options
67
+
sourceMapsUploadOptions: {
68
+
project:"___PROJECT_SLUG___",
69
+
org:"___ORG_SLUG___",
70
+
authToken:process.env.SENTRY_AUTH_TOKEN,
71
+
},
72
+
}),
73
+
],
74
+
});
75
+
```
76
+
</PlatformSection>
77
+
78
+
56
79
## Uploading using Sentry Webpack Plugin Version 1.x
57
80
58
81
Assuming you have the `@sentry/webpack` package installed on version `1.x`, you can learn more on how to configure the plugin in the [Sentry webpack plugin v1 documentation](https://github.com/getsentry/sentry-webpack-plugin#readme).
Copy file name to clipboardexpand all lines: platform-includes/sourcemaps/overview/javascript.astro.mdx
+3-42
Original file line number
Diff line number
Diff line change
@@ -30,20 +30,7 @@ export default defineConfig({
30
30
31
31
### Disable Source Maps Upload
32
32
33
-
You can disable automatic source maps upload in your Astro config:
34
-
35
-
```javascript {filename:astro.config.mjs}
36
-
exportdefaultdefineConfig({
37
-
integrations: [
38
-
sentry({
39
-
// Other Sentry options
40
-
sourceMapsUploadOptions: {
41
-
enabled:false,
42
-
},
43
-
}),
44
-
],
45
-
});
46
-
```
33
+
You can disable automatic source maps upload in your Astro configuration with `enabled: false` under `sourceMapsUploadOptions`
47
34
48
35
### Setting the Source Maps Assets Directory
49
36
@@ -66,39 +53,13 @@ The specified patterns must follow the [glob syntax](https://www.npmjs.com/packa
66
53
67
54
### Working With Old Authentication Tokens
68
55
69
-
Source maps work best with [organization-scoped auth tokens](/product/accounts/auth-tokens/#organization-auth-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`:
56
+
Source maps work best with [organization-scoped auth tokens](/product/accounts/auth-tokens/#organization-auth-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, refer to our [legacy upload methods](/platforms/javascript/guides/astro/sourcemaps/troubleshooting_js/#working-with-old-authentication-tokens) for more information.
70
57
71
-
```javascript {filename:astro.config.mjs}
72
-
exportdefaultdefineConfig({
73
-
integrations: [
74
-
sentry({
75
-
// Other Sentry options
76
-
sourceMapsUploadOptions: {
77
-
project:"___PROJECT_SLUG___",
78
-
org:"___ORG_SLUG___",
79
-
authToken:process.env.SENTRY_AUTH_TOKEN,
80
-
},
81
-
}),
82
-
],
83
-
});
84
-
```
85
58
86
59
### Disabeling Telemetry Data Collection
87
60
88
61
The Astro SDK uses the Sentry Vite plugin to upload source maps.
89
62
This plugin collects telemetry data to help us improve the source map uploading experience.
90
63
Read more about this in our [Vite plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin#telemetry).
91
-
You can disable telemetry collection by setting `telemetry` to `false`:
64
+
You can disable telemetry collection by setting `telemetry:false` under `sourceMapsUploadOptions`.
0 commit comments