Skip to content

Commit 3c40dba

Browse files
remove sentry * import
1 parent 0f161be commit 3c40dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/cloudflare/worker-entrypoint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// - the official open-next docs: https://opennext.js.org/cloudflare/howtos/custom-worker
44
// - the official sentry docs: https://docs.sentry.io/platforms/javascript/guides/cloudflare
55

6-
import * as Sentry from '@sentry/cloudflare';
6+
import { withSentry } from '@sentry/cloudflare';
77

88
import type { ExecutionContext } from '@cloudflare/workers-types';
99

1010
import { default as handler } from '../.open-next/worker.js';
1111

12-
export default Sentry.withSentry(
12+
export default withSentry(
1313
() => ({
1414
dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
1515
// Adds request headers and IP for users, for more info visit:

0 commit comments

Comments
 (0)