Local development
To run your app locally with Enkryptify secrets, install the Enkryptify CLI and link it to your project, then prefix your usual start script withek run --:
dev with whatever script starts your app. ek run fetches your project’s secrets and injects them as environment variables for that command only.
Accessing secrets in React
With Vite (the default for new React apps), only variables prefixed withVITE_ are exposed to your code, through import.meta.env:
ek run:
Deploying
Build withek run -- npm run build so the VITE_ values are inlined, then deploy the static output. If your host runs the build, use a sync to provide those variables there.