{"library":"vite-inject-env","type":"library","category":null,"description":"vite-inject-env is a build tool designed to address a common challenge in modern web application deployment, particularly for Vite-based projects. It enables the injection of environment variables *after* the static files have been built, rather than requiring them at build time. This allows developers to create a single, immutable build artifact that can be deployed to multiple environments (e.g., development, staging, production) with different configurations, promoting a more efficient and reliable CI/CD workflow. The current stable version is 2.1.0, and while a specific release cadence isn't published, the presence of distinct v1.0 and v2.0 documentation suggests major versions are released to incorporate significant architectural or feature updates. A key differentiator is its synchronous availability of environment variables in the browser without the need for asynchronous fetching, resolving a limitation often encountered with other post-build environment variable solutions.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-inject-env","imports":["import { env } from './env'","npx vite-inject-env set","declare global { interface Window { env: any } }"]},{"cmd":"yarn add vite-inject-env","imports":[]},{"cmd":"pnpm add vite-inject-env","imports":[]}],"homepage":null,"github":"https://github.com/rafyzg/vite-inject-env","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-inject-env","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-inject-env/compatibility"}}