Build-Time vs Runtime Validation
When to validate env vars during build, at startup, and in CI.
Release notes, changelogs, and announcements.
Long-running processes can now react to environment variable changes at runtime — no restart required.
When to validate env vars during build, at startup, and in CI.
Publish reusable env schemas from your library so consumers can extend them.
CtroEnv detects Deno and Bun environments automatically — no configuration needed.
CtroEnv's zero-dependency core is 6.5 KB gzipped — here's how it stays lean.
Validate environment variables in Cloudflare Workers with workersSource.
Graceful degradation, per-environment handling, and custom error reporting.
How CtroEnv infers exact types from validators without manual type definitions.
Server/client split, build-time validation, and secret access with the CtroEnv Next.js adapter.
How loadEnv() parses .env files, handles interpolation, and integrates with process.env.
Catch misconfigured env vars during the Vite build with ctroenvPlugin.
Why string().secret().url() fails at runtime and how to avoid it.
Extend CtroEnv with your own validator factories using createValidator and applyChain.
How CtroEnv's Proxy protects secret values from accidental exposure.
Catch missing env vars before they reach production with ctroenv check and validate.
Understand every CtroEnv error message and how to fix it.
Replace scattered process.env access with a single typed schema.
Use objectSource() to test env validation without touching process.env.
How detectSource() now prefers import.meta.env for dynamic NEXT_PUBLIC access in Next.js 16 Turbopack client bundles.
Schema composition for reusable env definitions across monorepo packages with extendSchema.
Runtime secret masking prevents accidental leaks of JWT secrets, API keys, and database credentials.
Eager validation for Turbopack, const type parameter for pick(), and string | undefined for env.meta.get().
Runtime secret masking, schema composition for monorepos, and universal AI agent guide.
Fixes for env.meta, Next.js server-only key guard, CLI stderr, and boolean validator polish.
Smarter env file parsing, JSON configuration support, and check --strict for value validation.
Bring the same rigor from your type system to the environment variables your app depends on.
Error message refinement, performance benchmarks, and bundle size optimization.
Initial release of CtroEnv: define, validate, and infer types for environment variables with zero runtime dependencies.