diff --git a/packages/nextjs/src/config/withSentryConfig.ts b/packages/nextjs/src/config/withSentryConfig.ts index 07a22a815ade..48afb25f8dc3 100644 --- a/packages/nextjs/src/config/withSentryConfig.ts +++ b/packages/nextjs/src/config/withSentryConfig.ts @@ -104,12 +104,12 @@ function setUpTunnelRewriteRules(userNextConfig: NextConfigObject, tunnelPath: s { type: 'query', key: 'o', // short for orgId - we keep it short so matching is harder for ad-blockers - value: '(?.*)', + value: '(?[a-fA-F0-9]*)', }, { type: 'query', key: 'p', // short for projectId - we keep it short so matching is harder for ad-blockers - value: '(?.*)', + value: '(?\\d*)', }, ], destination: 'https://o:orgid.ingest.sentry.io/api/:projectid/envelope/?hsts=0',