Skip to content

Commit b12d5be

Browse files
authored
fix: Do not recommend using env.VITE_XXX (#6460)
As anything prefixed with `VITE_` will be made available to the client, which we do not want for the auth token.
1 parent 3c25ac7 commit b12d5be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform-includes/sourcemaps/upload/vite/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default defineConfig(({ command, mode }) => {
4040

4141
// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
4242
// and needs the `project:releases` and `org:read` scopes
43-
authToken: env.VITE_SENTRY_AUTH_TOKEN,
43+
authToken: env.SENTRY_AUTH_TOKEN,
4444

4545
// Optionally uncomment the line below to override automatic release name detection
4646
// release: env.RELEASE,

0 commit comments

Comments
 (0)