Skip to content

Commit

Permalink
fix(nuxt): Server-side setup in readme (#14049)
Browse files Browse the repository at this point in the history
Clarify override for pnpm and fix file name.
  • Loading branch information
s1gr1d authored Oct 22, 2024
1 parent 022caf9 commit 6e2c0d1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Sentry.init({
### 4. Server-side setup
Add an `sentry.client.config.ts` file to the root of your project:
Add a `sentry.server.config.ts` file to the root of your project:
```javascript
import * as Sentry from '@sentry/nuxt';
Expand Down Expand Up @@ -137,16 +137,28 @@ When adding `sentry.server.config.ts`, you might get an error like this:
for `@vercel/nft` to fix this. This will add the `hook.mjs` file to your build output
([Nitro issue here](https://github.com/unjs/nitro/issues/2703)).
For `npm`:
```json
"overrides": {
"@vercel/nft": "^0.27.4"
}
```
or in `yarn`:
for `yarn`:
```json
"resolutions": {
"@vercel/nft": "^0.27.4"
}
```
or for `pnpm`:
```json
"pnpm": {
"overrides": {
"@vercel/nft": "^0.27.4"
}
}
```

0 comments on commit 6e2c0d1

Please sign in to comment.