Skip to content

[frontend] - Web Vitals reporter sends data even in development #556

Description

@Hydrax117

Description

WebVitalsInit.tsx and webVitalsReporter.ts send Core Web Vitals to an analytics endpoint in all environments, including local development, polluting analytics data.

Acceptance Criteria

  • Reporting is gated behind process.env.NODE_ENV === 'production'.
  • The endpoint URL is read from an environment variable (NEXT_PUBLIC_ANALYTICS_ENDPOINT).
  • A missing endpoint in development logs a console warning instead of silently failing.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions