# Platforms

Fly.io, Vercel, Heroku, Railway and Render run your app on machines you never see, so give each app one canary in its environment variables, next to its real secrets. Every instance gets it, and the alert names the app.

## Fly.io

`fly secrets import` reads `NAME=VALUE` lines from stdin and never prints the values:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name fly-api | fly secrets import -a YOUR-APP
```

It restarts the app's Machines to apply the secrets. Add `--stage` to apply them with your next deploy instead.

## Vercel

`vercel env add` sets one variable at a time and reads its value from stdin, so loop over the two lines:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name vercel-web \
  | while IFS='=' read -r name value; do printf '%s' "$value" | vercel env add "$name" --environment production; done
```

Only new deployments see it, so redeploy.

## Heroku

`heroku config:set` takes the values as arguments and prints them back, so send its output nowhere:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name heroku-api | xargs heroku config:set -a YOUR-APP > /dev/null
```

Setting config vars restarts the app and creates a new release.

## Railway

`railway variable set --stdin` sets one variable at a time, so loop over the two lines, then deploy once:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name railway-api \
  | while IFS='=' read -r name value; do printf '%s' "$value" | railway variable set "$name" --stdin --skip-deploys; done
```

## Render and dashboard-only platforms

Where variables can only be set in a web dashboard, write the decoy to a file only you can read, paste it in, then delete the file:

```sh
umask 077
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name render-api > decoy.env
```

Render's **Add from .env** and Railway's raw editor both accept the two `NAME=value` lines as they are. Delete `decoy.env` once they're saved.
