Skip to content

Commit ddb9196

Browse files
authored
Early return to temporarily disable event tracking during DDOS (#55135)
1 parent 21068d2 commit ddb9196

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/events/components/events.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable camelcase */
1+
/* eslint-disable camelcase, no-unreachable */
22
import Cookies from 'src/frame/components/lib/cookies'
33
import { parseUserAgent } from './user-agent'
44
import { Router } from 'next/router'
@@ -76,6 +76,9 @@ export function sendEvent<T extends EventType>({
7676
} & EventPropsByType[T]) {
7777
if (isHeadless()) return
7878

79+
// Early return to disable event tracking
80+
return
81+
7982
const body = {
8083
type,
8184

0 commit comments

Comments
 (0)