Skip to content

Commit eb7e094

Browse files
committed
chore(cloudflare): Disallow server-utils usage outside of nodejs_compat
1 parent 73e8b22 commit eb7e094

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/cloudflare/.oxlintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
{
2323
"name": "@sentry/node",
2424
"message": "Do not import from `@sentry/node` in the Cloudflare SDK. It relies on Node.js APIs that are only available when the `nodejs_compat` flag is set. The only allowed importers are files in `src/nodejs_compat/`, which are exposed via the `@sentry/cloudflare/nodejs_compat/*` entry points."
25+
},
26+
{
27+
"name": "@sentry/server-utils",
28+
"message": "Do not import from `@sentry/server-utils` in the Cloudflare SDK. It relies on Node.js APIs that are only available when the `nodejs_compat` flag is set. The only allowed importers are files in `src/nodejs_compat/`, which are exposed via the `@sentry/cloudflare/nodejs_compat/*` entry points."
2529
}
2630
]
2731
}

0 commit comments

Comments
 (0)