mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
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:
1 parent
176a018632
commit
33da8066dc
1 file changed
+2
@@ -1,3 +1,5 @@
|
||||
'use client'
|
||||
|
||||
import { useEffect } from 'react'
|
||||
import type { Metric } from 'web-vitals'
|
||||
|
||||
|
||||
Reference in new issue
Block a user