Skip to content

Commit

Permalink
add changeset file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcgivery committed Oct 3, 2024
1 parent 54fd75c commit b112f37
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .changesets/feat_feature_dotenv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Add dotenv to allow router to read environment variables from .env file ([PR #6117](https://github.com/apollographql/router/pull/6117))

Router will now read environment variables from `.env` file. This is helpful for local development to inject in `APOLLO_KEY` and `APOLLO_GRAPH_REF` from a `.env` file. It also makes these environment variables available everywhere they are currently available such as in rhai scripts:

```
# .env
MY_COOL_VARIABLE="yeaaaaa man!"
# main.rhai
log_info(`MY_COOL_VARIABLE: ${env::get("MY_COOL_VARIABLE")}`);
```

By [@andrewmcgivery](https://github.com/andrewmcgivery) in https://github.com/apollographql/router/pull/6117

0 comments on commit b112f37

Please sign in to comment.