mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
import.meta.env is undefined in Next.js Turbopack/Webpack, causing "Cannot read properties of undefined" when the studio telemetry client loads. Wrap accesses in try-catch so they gracefully fall back. Also hardcode the PostHog API key and host — they're public write-only values with no reason to be overridable via env.