Bun
How to use Hanzo KMS to inject environment variables and secrets into a Bun app.
Prerequisites:
- Set up and add envars to Hanzo KMS Cloud
Initialize Hanzo KMS for your Bun
# 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 -- bun run devBun environment variables can be called as either Bun.env.SECRET or process.env.SECRET. We also recommend you check this more in-depth guide to environment variables in Bun.
How is this guide?
Last updated on