Skip to content

Commit 075cc6e

Browse files
authored
fix: Remove Auth Token check here (#9651)
1 parent eb2d726 commit 075cc6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/astro/src/integration/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
2727
const uploadOptions = options.sourceMapsUploadOptions || {};
2828

2929
const shouldUploadSourcemaps = uploadOptions?.enabled ?? true;
30-
const authToken = uploadOptions.authToken || env.SENTRY_AUTH_TOKEN;
3130

32-
if (shouldUploadSourcemaps && authToken) {
31+
// We don't need to check for AUTH_TOKEN here, because the plugin will pick it up from the env
32+
if (shouldUploadSourcemaps) {
3333
updateConfig({
3434
vite: {
3535
build: {

0 commit comments

Comments
 (0)