Skip to content

Latest commit

 

History

History

react

Varlock + Vite + React example

Minimal React (via Vite) project using Varlock through @varlock/vite-integration.

Demonstrates:

  • env validation from .env.schema with environment-specific overrides (.env.development / .env.production)
  • type-safe access via the ENV proxy (import { ENV } from 'varlock/env') and via import.meta.env
  • generated types (env.d.ts) for both access patterns
  • leak prevention — sensitive values are not bundled into client code
pnpm install
pnpm dev