API reference

React

Exports from the @vlandoss/env/react entrypoint — the React integration for server-rendered apps (SSR or SSG).

The @vlandoss/env/react entrypoint is the React integration for server-rendered apps — SSR (request-time) or SSG (build-time). Render <EnvScript /> in your document and the resolved env shows up at window.__env before client code runs.

Exports

ExportKindSummary
EnvScriptComponentSerializes the public branch of your resolved env into a <script id="env"> element.

Full signatures and prop tables are coming soon. Until then, see Guides → SSR / SSG for the recipe.

See also

On this page