From dccc1bc6028f7f35c29a7e2e3cdc4cb350a94231 Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Tue, 22 Oct 2024 10:57:59 +0200 Subject: [PATCH 1/2] fix(nuxt): Server-side setup in readme --- packages/nuxt/README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/README.md b/packages/nuxt/README.md index abf7f0d7c594..8212765a0691 100644 --- a/packages/nuxt/README.md +++ b/packages/nuxt/README.md @@ -75,7 +75,7 @@ Sentry.init({ ### 4. Server-side setup -Add an `sentry.client.config.ts` file to the root of your project: +Add an `sentry.server.config.ts` file to the root of your project: ```javascript import * as Sentry from '@sentry/nuxt'; @@ -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)). +In `npm`: + ```json "overrides": { "@vercel/nft": "^0.27.4" } ``` -or in `yarn`: +in `yarn`: ```json "resolutions": { "@vercel/nft": "^0.27.4" } ``` + +or in `pnpm`: + +```json +"pnpm": { + "overrides": { + "@vercel/nft": "^0.27.4" + } +} +``` From 44add744daad32559d5b252a316e0393404b837a Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Tue, 22 Oct 2024 11:10:46 +0200 Subject: [PATCH 2/2] review comments --- packages/nuxt/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nuxt/README.md b/packages/nuxt/README.md index 8212765a0691..429fd7487ddc 100644 --- a/packages/nuxt/README.md +++ b/packages/nuxt/README.md @@ -75,7 +75,7 @@ Sentry.init({ ### 4. Server-side setup -Add an `sentry.server.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'; @@ -137,7 +137,7 @@ 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)). -In `npm`: +For `npm`: ```json "overrides": { @@ -145,7 +145,7 @@ In `npm`: } ``` -in `yarn`: +for `yarn`: ```json "resolutions": { @@ -153,7 +153,7 @@ in `yarn`: } ``` -or in `pnpm`: +or for `pnpm`: ```json "pnpm": {