runtime-env-vite-plugin
OfficialClarify runtime vs build-time env in Vite.
Authorruntime-env
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill guides Vite users to correctly separate runtime environment variables from build-time configuration, preventing misconfigurations and brittle code by leveraging the runtime-env plugin and typed schemas.
Core Features & Use Cases
- Clear separation of runtime vs build-time variables using the runtime-env plugin.
- Sequential workflows for setup, discovery, and migration to ensure safe adoption.
- Works across Vite projects of varying sizes and supports automatic type generation after schema updates.
Quick Start
Install dev dependencies, update Vite config to include runtimeEnv(), add a .runtimeenvschema.json at the project root, and generate TypeScript typings with npx runtime-env gen-ts --output-file src/runtime-env.d.ts.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: runtime-env-vite-plugin Download link: https://github.com/runtime-env/runtime-env/archive/main.zip#runtime-env-vite-plugin Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.