vite-envs
JSON →Vite plugin (v4.6.2, actively maintained) that enables dynamic injection of environment variables at container startup rather than build time. Designed for Dockerized Vite apps, it generates a shell script during build that populates import.meta.env and index.html placeholders (e.g., %FOO%) at runtime. Unlike standard Vite which requires rebuilding for env changes, vite-envs allows deploying a single Docker image configurable via --env flags. Supports type-safe imports with hot reload, optional EJS in HTML, and explicit variable declaration. Does not require the VITE_ prefix.
Traffic · last 30 days stale · no recent hits
total hits 12
actors 4 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇩🇪 Germany
API endpoints
full doc /v1/registry/vite-envs
install /v1/registry/vite-envs/install
compatibility /v1/registry/vite-envs/compatibility