From 33da8066dc1d8bb10d6ac4afcdae5cbce26403bb Mon Sep 17 00:00:00 2001 From: Drew McLellan Date: Tue, 10 Nov 2026 15:05:32 +0000 Subject: [PATCH] fix(common): mark web vitals reporting hook as a client module The hook is exported from the common barrel, which server components and API routes import. Without the directive, Next production builds failed with a useEffect-in-server-component error. --- packages/common/web-vitals-reporting.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/common/web-vitals-reporting.ts b/packages/common/web-vitals-reporting.ts index b8747da380b..d90a2ef45d5 100644 --- a/packages/common/web-vitals-reporting.ts +++ b/packages/common/web-vitals-reporting.ts @@ -1,3 +1,5 @@ +'use client' + import { useEffect } from 'react' import type { Metric } from 'web-vitals'