Skip to content

Commit 6e2c0d1

Browse files
authored
fix(nuxt): Server-side setup in readme (#14049)
Clarify override for pnpm and fix file name.
1 parent 022caf9 commit 6e2c0d1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

packages/nuxt/README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Sentry.init({
7575

7676
### 4. Server-side setup
7777

78-
Add an `sentry.client.config.ts` file to the root of your project:
78+
Add a `sentry.server.config.ts` file to the root of your project:
7979

8080
```javascript
8181
import * as Sentry from '@sentry/nuxt';
@@ -137,16 +137,28 @@ When adding `sentry.server.config.ts`, you might get an error like this:
137137
for `@vercel/nft` to fix this. This will add the `hook.mjs` file to your build output
138138
([Nitro issue here](https://github.com/unjs/nitro/issues/2703)).
139139

140+
For `npm`:
141+
140142
```json
141143
"overrides": {
142144
"@vercel/nft": "^0.27.4"
143145
}
144146
```
145147

146-
or in `yarn`:
148+
for `yarn`:
147149

148150
```json
149151
"resolutions": {
150152
"@vercel/nft": "^0.27.4"
151153
}
152154
```
155+
156+
or for `pnpm`:
157+
158+
```json
159+
"pnpm": {
160+
"overrides": {
161+
"@vercel/nft": "^0.27.4"
162+
}
163+
}
164+
```

0 commit comments

Comments
 (0)