Expand description
Hydrate the running process’s environment from the compile-baked
Constants so child processes spawned later (Cocoon Node, Sky
webview) see the same telemetry config Mountain itself was built
with - even when the user runs the bare binary without sourcing
.env.Land.PostHog.
Idempotent: skips any var that’s already set so a CI / dev-shell
override beats the build-time default. Mountain’s
ProcessManagement::CocoonManagement::LandEnvAllowList then
forwards each value into Cocoon via Command.envs(). Sky reads
the same values via import.meta.env substitution at Vite/Astro
build time.
Release builds skip the hydration: cfg!(debug_assertions) is
false, so the body short-circuits and no telemetry env leaks
into a packaged production binary.