vite-plugin-runtime-config
JSON →A Vite plugin (v1.0.2) enabling runtime configuration for static builds. Unlike Vite's built-in env variables that are baked at build time, this plugin allows dynamic replacement of config placeholders (e.g., {{ VITE_X }}) in index.html via a generated script (patch_runtime_config.js). Supports development mode (auto-replacement from Vite env) and production mode (post-build script execution). Requires Vite ^3.1.0 and Vitest >0.23.2 <1.0 as peer dependencies. Suitable for projects served by external webservers without SSR.
Traffic · last 30 days stale · no recent hits
total hits 16
actors 5 distinct systems
last hit 24d ago AhrefsBot
top countries 🇺🇸 United States · 🇩🇪 Germany · BD · VN · 🇬🇧 United Kingdom
Resources
API endpoints
compatibility /v1/registry/vite-plugin-runtime-config/compatibility