{"library":"vite-envs","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.6.2","tags":["javascript","react","vite","environment-variables","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-envs","imports":["import { viteEnvs } from 'vite-envs'","import viteEnvs from 'vite-envs'","import { defineEnvVars } from 'vite-envs'"]},{"cmd":"yarn add vite-envs","imports":[]},{"cmd":"pnpm add vite-envs","imports":[]}],"homepage":null,"github":"https://github.com/garronej/vite-envs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-envs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}