Skip to content

Commit 70ab8a9

Browse files
docs(nuxt): Consistently use SENTRY_DSN env var in README examples (#13524)
1 parent c95cd76 commit 70ab8a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nuxt/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Add a `sentry.client.config.(js|ts)` file to the root of your project:
9696
import * as Sentry from '@sentry/nuxt';
9797

9898
Sentry.init({
99-
dsn: process.env.DSN,
99+
dsn: process.env.SENTRY_DSN,
100100
});
101101
```
102102

@@ -107,10 +107,10 @@ Add an `instrument.server.mjs` file to your `public` folder:
107107
```javascript
108108
import * as Sentry from '@sentry/nuxt';
109109

110-
// Only run `init` when DSN is available
110+
// Only run `init` when process.env.SENTRY_DSN is available.
111111
if (process.env.SENTRY_DSN) {
112112
Sentry.init({
113-
dsn: process.env.DSN,
113+
dsn: process.env.SENTRY_DSN,
114114
});
115115
}
116116
```

0 commit comments

Comments
 (0)