You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(nuxt): Add @sentry/cloudflare as dependency (#16873)
To not have the need of manually adding another package when wanting to
use the Cloudflare SDK, we always add it. This is already the case in
the SvelteKit SDK.
Copy file name to clipboardExpand all lines: docs/creating-a-new-sdk.md
+4-25Lines changed: 4 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -149,29 +149,8 @@ may decide to support them later.
149
149
150
150
To add support for Cloudflare Workers or Pages in a specific SDK, you need to do the following:
151
151
152
-
1. Add `@sentry/cloudflare` as an optional peer dependency to the `package.json` of the SDK.
153
-
This ensures that users who want to use the SDK with Cloudflare will install the necessary package, but it won't be a requirement for users on other platforms.
154
-
155
-
```json
156
-
"peerDependencies": {
157
-
"@sentry/cloudflare": ">=9.33.0"
158
-
},
159
-
"peerDependenciesMeta": {
160
-
"@sentry/cloudflare": {
161
-
"optional": true
162
-
}
163
-
}
164
-
```
165
-
166
-
2. Add `@sentry/cloudflare` to the `devDependencies` in the SDK's `package.json`.
167
-
This is necessary for local development and testing, allowing you to use the Cloudflare-specific APIs in the development environment.
168
-
169
-
```json
170
-
"devDependencies": {
171
-
"@sentry/cloudflare": "9.33.0",
172
-
}
173
-
```
174
-
175
-
3. Add documentation to the [Cloudflare Frameworks docs](https://docs.sentry.io/platforms/javascript/guides/cloudflare/frameworks/) explaining how to set up the SDK for Cloudflare Workers/Pages.
176
-
This documentation should include instructions for users to add the `@sentry/cloudflare` package to their project.
152
+
1. Add `@sentry/cloudflare` to the `dependencies` in the `package.json` of the SDK.
153
+
This ensures that users who want to use the SDK with Cloudflare have the Cloudflare SDK automatically installed.
154
+
155
+
2. Add documentation to the [Cloudflare Frameworks docs](https://docs.sentry.io/platforms/javascript/guides/cloudflare/frameworks/) explaining how to set up the SDK for Cloudflare Workers/Pages.
177
156
You can then link from the framework-specific docs pages to the Cloudflare SDK docs page by adding an entry to "Next Steps" on the "Getting Started" and "Manual Setup" pages.
0 commit comments