Guides

Deploy Anywhere

Store only one environment variable on your deployment platform.

The Basics

After running keydrop push, store only:

KEYDROP_KEY=proj_xxxxxxxxx

Vercel

Verified on Vercel deployments.

Environment Variable

KEYDROP_KEY=proj_xxxxxxxxx

Build Command

npx keydrop run -- next build

Runtime

import { init } from "keydrop";

await init();

Other Platforms

Vercel

Set KEYDROP_KEY and use npx keydrop run -- next build

Railway

Add KEYDROP_KEY in project environment variables

Docker

Pass KEYDROP_KEY via -e KEYDROP_KEY=proj_xxx

AWS ECS

Add KEYDROP_KEY to task definition environment variables

Heroku

heroku config:set KEYDROP_KEY=proj_xxx

Fly.io

fly secrets set KEYDROP_KEY=proj_xxx

Runtime in Production

Use keydrop run during builds. Call init() at runtime so secrets load into process.env when your app starts.

import { init } from "keydrop";

await init();
← Framework SupportCLI Reference →