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
| Export | Kind | Summary |
|---|---|---|
EnvScript | Component | Serializes 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
- Guides → SSR / SSG — splitting public values from server-only secrets.
- Concepts → Resolution order — how
window.__envparticipates in resolution on the client.