Loading...
Loading...
An inert helper attribute on an Environment field that exposes it to the frontend. Public fields are serialized into the SSR payload and the browser global that getEnv reads; every other field stays server-only.
Mark the fields you want available in the browser. Only `#[public]` fields are serialized to the client - secrets and connection strings left unmarked never leave the server: