vite-envs

JSON →
library 4.6.2 ·javascript
verified Apr 27, 2026

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.

total hits 19
actors 3 distinct systems
last hit 7d ago human
GPTBot
5
Search engines
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France