vite-plugin-runtime-dotenv

JSON →
library 1.0.0 ·javascript
verified Jun 4, 2026

A Vite plugin that enables runtime environment variables, allowing a single build to be deployed across multiple environments by generating separate builds with environment-specific variables injected. Version 1.0.0 requires Vite 7.x and ships TypeScript type definitions. Released in 2025. Unlike compile-time env substitution, this plugin duplicates the output into per-mode directories with injected runtime variables, making it suitable for CI/CD workflows where you want to 'build once, deploy anywhere'.