Skip to content

Commit 19d0ffc

Browse files
authored
Merge pull request #8199 from apollographql/DXM-568
docs: update links for API keys
2 parents 64c0e1b + ab5d6df commit 19d0ffc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/source/api/apollo-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ The `formatError` hook receives two arguments: the first is a [`GraphQLFormatted
377377

378378
An object containing configuration options for connecting Apollo Server to [Apollo Studio](https://www.apollographql.com/docs/studio/). Each field of this object can also be set with an environment variable, which is the recommended method of setting these parameters. All fields are optional. The fields are:
379379

380-
- `key`: The [graph API key](https://www.apollographql.com/docs/studio/api-keys/#graph-api-keys) that Apollo Server should use to authenticate with Apollo Studio. You can set this with the `APOLLO_KEY` environment variable.
380+
- `key`: The [graph API key](/graphos/platform/access-management/api-keys/graph-api-keys) that Apollo Server should use to authenticate with Apollo GraphOS. You can set this with the `APOLLO_KEY` environment variable.
381381
- `graphRef`: A reference of your graph in Apollo's registry, such as `graph-id@my-variant` or just `graph-id`. You can set this with the `APOLLO_GRAPH_REF` environment variable.
382382
- `graphId`: The ID of your graph in Apollo's registry. You can set this with the `APOLLO_GRAPH_ID` environment variable. You may not specify this if you specify the graph ref.
383383
- `graphVariant`: The [variant](https://www.apollographql.com/docs/studio/schema/registry/#managing-environments-with-variants) of your graph to associate this server's schema and metrics with. You can set this with the `APOLLO_GRAPH_VARIANT` environment variable. The default value is `current`. You may not specify this if you specify the graph ref.

docs/source/deployment/heroku.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Then from the app's detail page, select the **Deploy** tab. On that tab, you can
121121

122122
To enable the production mode of Apollo Server, you need to set the `NODE_ENV` variable to `production`. To ensure you have visibility into your GraphQL performance in Apollo Studio, you'll want to add the `APOLLO_KEY` environment variable to Heroku. For the API key, log in to [Apollo Studio](https://studio.apollographql.com) and navigate to your graph or create a new one.
123123

124-
Under your Heroku app's Settings tab, click **Reveal Config Vars**. Next, set `NODE_ENV` to `production` and [copy your graph API key](/graphos/api-keys/#graph-api-keys) from Apollo Studio as the value for `APOLLO_KEY`.
124+
Under your Heroku app's Settings tab, click **Reveal Config Vars**. Next, set `NODE_ENV` to `production` and [copy your graph API key](/graphos/platform/access-management/api-keys/graph-api-keys) from Apollo Studio as the value for `APOLLO_KEY`.
125125

126126
<img class="screenshot" src="../images/deployment/heroku/config-vars.jpg" alt="Adding config vars" />
127127

docs/source/monitoring/metrics.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Apollo Server integrates seamlessly with [Apollo GraphOS](/graphos/) to help you
1919

2020
### Connecting to GraphOS
2121

22-
To connect Apollo Server to GraphOS, first [obtain a graph API key](/graphos/api-keys#graph-api-keys). To provide this key to Apollo Server, assign it to the `APOLLO_KEY` environment variable in your server's environment.
22+
To connect Apollo Server to GraphOS, first [obtain a graph API key](/graphos/platform/access-management/api-keys/graph-api-keys). To provide this key to Apollo Server, assign it to the `APOLLO_KEY` environment variable in your server's environment.
2323

2424
Then associate your server instance with a particular graph ID and [graph variant](/graphos/graphs/#variants) by setting the `APOLLO_GRAPH_REF` environment variable.
2525

0 commit comments

Comments
 (0)