mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
568b1b47d8
Importing '@hyperframes/player' at module load triggers the custom-element registration (class extends HTMLElement), which throws under SSR. Next.js App Router evaluates Player.tsx during server rendering of any page that transitively imports from @hyperframes/studio. Move the import inside the useMountEffect so it only runs in the browser, matching the pattern demo-next uses in its own HyperframesPlayer wrapper. Bumps studio to 0.2.9.