Skip to content

Commit 3ec8447

Browse files
authored
docs(astro): Add note about env docs (#13648)
## DESCRIBE YOUR PR Adding small notice about using environment variables in Astro. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs)
1 parent 4517fa3 commit 3ec8447

File tree

1 file changed

+5
-3
lines changed
  • docs/platforms/javascript/guides/astro

1 file changed

+5
-3
lines changed

docs/platforms/javascript/guides/astro/index.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import * as Sentry from "@sentry/astro";
9999

100100
Sentry.init({
101101
dsn: "___PUBLIC_DSN___",
102-
102+
103103
// Adds request headers and IP for users, for more info visit:
104104
// https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#sendDefaultPii
105105
sendDefaultPii: true,
@@ -141,12 +141,12 @@ import { nodeProfilingIntegration } from '@sentry/profiling-node';
141141

142142
Sentry.init({
143143
dsn: "___PUBLIC_DSN___",
144-
144+
145145
// Adds request headers and IP for users, for more info visit: for more info visit:
146146
// https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#sendDefaultPii
147147
sendDefaultPii: true,
148148
// ___PRODUCT_OPTION_START___ profiling
149-
149+
150150
integrations: [
151151
// Add our Profiling integration
152152
nodeProfilingIntegration(),
@@ -167,6 +167,8 @@ Sentry.init({
167167
});
168168
```
169169

170+
If you want to configure your SDK using environment variables, make sure to follow Astro's documentation on [using environment variables](https://docs.astro.build/en/guides/environment-variables/).
171+
170172
## Add Readable Stack Traces to Errors
171173

172174
To get readable stack traces in your production builds, set the `SENTRY_AUTH_TOKEN` environment variable in your build environment. You can also add the environment variable to a `.env.sentry-build-plugin` file in the root of your project.

0 commit comments

Comments
 (0)