React
How to use Hanzo KMS to inject environment variables and secrets into a React app.
Prerequisites:
- Set up and add envars to Hanzo KMS Cloud
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 initStart your application as usual but with Hanzo KMS
kms run -- <your application start command>
# Example
kms run -- npm run devReact environment variables must be prefixed with REACT_APP_ to show up within the application
How is this guide?
Last updated on