Skip to content

Commit 55b9416

Browse files
authored
fix(cloudflare): Use correct setup snippets for Hydrogen (#12608)
1 parent 312960b commit 55b9416

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: "Learn how to add Cloudflare instrumentation to your Remix app."
55

66
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.
77

8+
## 1. Installing Sentry Remix SDK
9+
810
First, install the Sentry Remix SDK in your application. We recommend using the Sentry wizard to automatically install the SDK:
911

1012
```bash
@@ -13,6 +15,8 @@ npx @sentry/wizard@latest -i remix
1315

1416
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/).
1517

18+
## 2. Installing Sentry Cloudflare SDK
19+
1620
After installing the Sentry Remix SDK, delete the newly generated `instrumentation.server.mjs` file. This instrumentation is not needed when using the Cloudflare SDK.
1721

1822
Now you can install the Sentry Cloudflare SDK. First, install the SDK with your package manager:

docs/platforms/javascript/guides/remix/frameworks/hydrogen.mdx

+16-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: "Learn how to use the Sentry Remix SDK to instrument your Shopify H
55

66
If you're using the Shopify Hydrogen framework, you can use the Sentry Remix SDK to add Sentry instrumentation to your app.
77

8+
## 1. Installing Sentry Remix SDK
9+
810
First, install the Sentry Remix SDK in your application. We recommend using the Sentry wizard to automatically install the SDK:
911

1012
```bash
@@ -13,11 +15,24 @@ npx @sentry/wizard@latest -i remix
1315

1416
If the wizard doesn't work for you, you can also [set up the Remix SDK manually](/platforms/javascript/guides/remix/manual-setup/).
1517

18+
## 2. Installing Sentry Cloudflare SDK
19+
1620
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.
1721

1822
Now you can install the Sentry Cloudflare SDK. First, install the SDK with your package manager:
1923

20-
<PlatformContent includePath="getting-started-install" />
24+
```bash {tabTitle:npm}
25+
npm install @sentry/cloudflare --save
26+
```
27+
28+
```bash {tabTitle:yarn}
29+
yarn add @sentry/cloudflare
30+
```
31+
32+
```bash {tabTitle:pnpm}
33+
pnpm add @sentry/cloudflare
34+
```
35+
2136

2237
Then update your `server.ts` file to use the `wrapRequestHandler` method:
2338

0 commit comments

Comments
 (0)