Hydrogen / Oxygen PostHog env proof

The env fix is what makes PostHog work in production.

Same Oxygen production environment, same token in Shopify admin, same public domain. The old code path cannot see the token. The fixed code path reads it and sends an event.

Conclusion: use Oxygen runtime env from context.env, then expose it to the browser.

Before tokennull
After tokennull
PostHog eventnull Missing VITE_POSTHOG_TOKEN
BEFORE: BROKEN

Direct import.meta.env

Tokennull
Token presentfalse
Markernull
Hostnull
AFTER: WORKS

Loader reads context.env

Tokennull
Token presentfalse
Markeroxygen-prod-marker-123
Hosthttps://us.i.posthog.com
POSTHOG PROOF

Event sent with fixed token

Sentfalse
Statusnull
ResponseMissing VITE_POSTHOG_TOKEN
Event namecodex_lab_home_proof_1779629573366