Recipes
Useful .env.schema patterns for environment syncs
These recipes show useful .env.schema patterns for projects that sync values
to multiple environments or deployment targets.
oe.env sync resolves variables once per source environment. Local-only overrides are excluded
from synced values, while OE_ENV_ routing variables can still choose which service project is
updated.
Pick a pattern
Multiple environments
Route secrets by environment using a single interpolation.
Multiple targets
Sync the same schema to multiple Vercel projects.
Generate types
Get type-safe access to environment variables with varlock typegen.
Next.js integration
Use Varlock's Next.js plugin for log redaction, leak detection, and encrypted deployments.