{"library":"vite-plugin-envsubst","type":"library","category":null,"description":"A Vite plugin that transforms import.meta.env references to globalThis.env placeholders for runtime substitution via envsubst or Caddy's templating engine. Current stable version 0.3.0. Released in April 2025. Solves the problem of environment-specific builds by deferring variable injection to runtime, suitable for Docker/Kubernetes deployments. Key differentiators: only transforms declared variables from vite-env.d.ts, respects Vite's envPrefix, supports both envsubst and Caddy template syntax, and uses sourcemap-preserving transforms with a single runtime dependency (rolldown-string). Unlike other env injection plugins, it enables true build-once-deploy-anywhere without build-time environment knowledge.","language":"javascript","status":"active","version":"0.3.0","tags":["javascript","caddy","docker","kubernetes","nginx","vite-plugin","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-envsubst","imports":["import { envSubstPlugin } from 'vite-plugin-envsubst'","import type { EnvSubstPluginOptions } from 'vite-plugin-envsubst'","import { envSubstPlugin } from 'vite-plugin-envsubst'"]},{"cmd":"yarn add vite-plugin-envsubst","imports":[]},{"cmd":"pnpm add vite-plugin-envsubst","imports":[]}],"homepage":null,"github":"https://github.com/abhiaagarwal/vite-plugin-envsubst","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-envsubst","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}