Hanzo
PlatformHanzo KMSIntegrationsFrameworks

React

How to use Hanzo KMS to inject environment variables and secrets into a React app.

Prerequisites:

Initialize Hanzo KMS for your Create React App

# navigate to the root of your of your project 
cd /path/to/project

# then initialize kms
kms init

Start your application as usual but with Hanzo KMS

kms run -- <your application start command>

# Example
kms run -- npm run dev

React environment variables must be prefixed with REACT_APP_ to show up within the application

How is this guide?

Last updated on

On this page