diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx index 6db013ef60dcc..c3e736869808f 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx +++ b/docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx @@ -5,6 +5,8 @@ description: "Learn how to add Cloudflare instrumentation to your Remix app." If you're running your Remix app on Cloudflare Pages, you can use the Sentry Remix SDK in combination with the Sentry Cloudflare SDK to add Sentry instrumentation. +## 1. Installing Sentry Remix SDK + First, install the Sentry Remix SDK in your application. We recommend using the Sentry wizard to automatically install the SDK: ```bash @@ -13,6 +15,8 @@ npx @sentry/wizard@latest -i remix If the setup through the wizard doesn't work for you, you can also [set up the Remix SDK manually](/platforms/javascript/guides/remix/manual-setup/). +## 2. Installing Sentry Cloudflare SDK + After installing the Sentry Remix SDK, delete the newly generated `instrumentation.server.mjs` file. This instrumentation is not needed when using the Cloudflare SDK. Now you can install the Sentry Cloudflare SDK. First, install the SDK with your package manager: diff --git a/docs/platforms/javascript/guides/remix/frameworks/hydrogen.mdx b/docs/platforms/javascript/guides/remix/frameworks/hydrogen.mdx index 299fd9325d063..cabec4c059eeb 100644 --- a/docs/platforms/javascript/guides/remix/frameworks/hydrogen.mdx +++ b/docs/platforms/javascript/guides/remix/frameworks/hydrogen.mdx @@ -5,6 +5,8 @@ description: "Learn how to use the Sentry Remix SDK to instrument your Shopify H If you're using the Shopify Hydrogen framework, you can use the Sentry Remix SDK to add Sentry instrumentation to your app. +## 1. Installing Sentry Remix SDK + First, install the Sentry Remix SDK in your application. We recommend using the Sentry wizard to automatically install the SDK: ```bash @@ -13,11 +15,24 @@ npx @sentry/wizard@latest -i remix If the wizard doesn't work for you, you can also [set up the Remix SDK manually](/platforms/javascript/guides/remix/manual-setup/). +## 2. Installing Sentry Cloudflare SDK + After installing the Sentry Remix SDK, delete the newly generated `instrumentation.server.mjs` file and all newly generated code from `entry.server.tsx`. This instrumentation is not needed because you are going to use the Sentry Cloudflare SDK for server-side instrumentation. Now you can install the Sentry Cloudflare SDK. First, install the SDK with your package manager: - +```bash {tabTitle:npm} +npm install @sentry/cloudflare --save +``` + +```bash {tabTitle:yarn} +yarn add @sentry/cloudflare +``` + +```bash {tabTitle:pnpm} +pnpm add @sentry/cloudflare +``` + Then update your `server.ts` file to use the `wrapRequestHandler` method: