From 075cc6eee06bb97106aeadb371db6a58c864c1df Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Fri, 24 Nov 2023 11:38:24 +0100 Subject: [PATCH] fix: Remove Auth Token check here (#9651) --- packages/astro/src/integration/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/integration/index.ts b/packages/astro/src/integration/index.ts index caaf6a073380..69d551f3f9ab 100644 --- a/packages/astro/src/integration/index.ts +++ b/packages/astro/src/integration/index.ts @@ -27,9 +27,9 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => { const uploadOptions = options.sourceMapsUploadOptions || {}; const shouldUploadSourcemaps = uploadOptions?.enabled ?? true; - const authToken = uploadOptions.authToken || env.SENTRY_AUTH_TOKEN; - if (shouldUploadSourcemaps && authToken) { + // We don't need to check for AUTH_TOKEN here, because the plugin will pick it up from the env + if (shouldUploadSourcemaps) { updateConfig({ vite: { build: {