We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16eb479 commit 3d76a43Copy full SHA for 3d76a43
1 file changed
apps/site/cloudflare/worker-entrypoint.ts
@@ -10,8 +10,14 @@ import type { ExecutionContext } from '@cloudflare/workers-types';
10
import { default as handler } from '../.open-next/worker.js';
11
12
export default withSentry(
13
- () => ({
14
- dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
+ (env: {
+ /**
15
+ * Sentry DSN, used for error monitoring
16
+ * If missing, Sentry isn't used
17
+ */
18
+ SENTRY_DSN?: string;
19
+ }) => ({
20
+ dsn: env.SENTRY_DSN,
21
// Adds request headers and IP for users, for more info visit:
22
// https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#sendDefaultPii
23
sendDefaultPii: true,
0 commit comments