Skip to content

Commit

Permalink
mention how to access secrets from node/deno/bun applications.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Oct 3, 2023
1 parent 066d6de commit 7e61d4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/the-basics/secrets.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ fly secrets import < .dotenv
```

Both commands will restart your application if it has previously been deployed. Pass the `--stage` option if you would rather deploy these changes later.

Once deployed, your application can access secrets using
[process.env](https://nodejs.org/dist/latest-v8.x/docs/api/process.html#process_process_env),
[Deno.env](https://docs.deno.com/runtime/manual/basics/env_variables), or
[Bun.env](https://bun.sh/guides/runtime/read-env).

0 comments on commit 7e61d4f

Please sign in to comment.