@webpresso/runtime-env
v0.2.0
Published
Runtime profile and env resolution helpers with a minimal provider-neutral public surface
Downloads
613
Readme
@webpresso/runtime-env
Provider-neutral runtime profile and environment resolution helpers.
This package is the small public extraction for consumers that need runtime
profile / env loading without depending on the full
@webpresso/webpresso/runtime/env umbrella surface.
What it includes
- execution-context detection (
dev,e2e,preview,prod) - runtime profile names and resolver selection
- a small resolver/coordinator abstraction
resolveRuntimeProfile(profile, options?)
What it does not include
- Neon-specific branch helpers
db/neon- Cloudflare deploy helpers
- app-specific runtime conventions
Example
import { resolveRuntimeProfile } from "@webpresso/runtime-env";
const env = await resolveRuntimeProfile("secrets-only", { fresh: true });Intended use
ingest-lensand similar consumers that need a shared env/profile abstraction- tools and scripts that need runtime secrets/profile loading
Keep provider-specific deploy/database behavior in the consumer repo unless a second real consumer proves a narrower shared extraction is warranted.
