Skip to content

Commit c6d6fbb

Browse files
committed
add changelog entry
1 parent 4763cde commit c6d6fbb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@
1010

1111
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
1212

13+
### Important Changes
14+
15+
- **feat(nuxt): Add option autoInjectServerSentry (no default import()) ([#14553](https://github.com/getsentry/sentry-javascript/pull/14553))**
16+
17+
Using the dynamic `import()` as the default behavior for initializing the SDK on the server-side did not work for every project.
18+
The default behavior of the SDK has been changed, and you now need to **use the `--import` flag to initialize Sentry on the server-side** to leverage full functionality.
19+
20+
Example with `--import`:
21+
22+
```bash
23+
node --import ./.output/server/sentry.server.config.mjs .output/server/index.mjs
24+
```
25+
26+
In case you are not able to use the `--import` flag, you can enable auto-injecting Sentry in the `nuxt.config.ts` (comes with limitations):
27+
28+
```json
29+
sentry: {
30+
autoInjectServerSentry: 'top-level-import', // or 'experimental_dynamic-import'
31+
},
32+
```
33+
1334
Work in this release was contributed by @lsmurray. Thank you for your contribution!
1435

1536
## 8.42.0

0 commit comments

Comments
 (0)