Skip to content

Commit 7eac13b

Browse files
authored
docs(cloudflare): Change onboarding script for Cloudflare Workers (#105640)
This adds the workaround until v11 is out. At the moment we have to explicitly set `(env: Env) => ...` in order to make the types work. This can be reverted (no must) when following is merged and released: getsentry/sentry-javascript#18302 reference: getsentry/sentry-javascript#18294 (comment)
1 parent 20c3288 commit 7eac13b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

static/app/gettingStartedDocs/node-cloudflare-workers/logs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const logs = getNodeLogsOnboarding({
99
code: `import * as Sentry from "${packageName}";
1010
1111
export default Sentry.withSentry(
12-
env => ({
12+
(env: Env) => ({
1313
dsn: "${params.dsn.public}",
1414
integrations: [
1515
// send console.log, console.warn, and console.error calls as logs to Sentry

static/app/gettingStartedDocs/node-cloudflare-workers/onboarding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const getSdkSetupSnippet = (params: DocsParams) => `
2525
import * as Sentry from "@sentry/cloudflare";
2626
2727
export default Sentry.withSentry(
28-
env => ({
28+
(env: Env) => ({
2929
dsn: "${params.dsn.public}",${
3030
params.isPerformanceSelected
3131
? `

0 commit comments

Comments
 (0)