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.
This commit is contained in:
Drew McLellan committed 2026-11-27 11:27:49 +00:00
1 parent 176a018632
commit 33da8066dc
1 file changed
+2
+2
View File
@@ -1,3 +1,5 @@
'use client'
import { useEffect } from 'react'
import type { Metric } from 'web-vitals'