apollographql / apollographql/fullstack-tutorial

Missing step to uncomment dotenv configuration

Open
#76 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

We should mention somewhere around [here](https://www.apollographql.com/docs/tutorial/production.html#api-key) that [this line](https://github.com/apollographql/fullstack-tutorial/blob/master/final/server/src/index.js#L1) should be uncommented in order for `dotenv` configuration to take effect. Without this, metrics are not sent to Apollo Engine since the Apollo server does not actually have the ENGINE_API_KEY set. Also, some acknowledgement of how this works via the `dotenv` module seems like it would be appropriate.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the production tutorial near the API key section and inspect server/src/index.js at line 1, where the dotenv configuration is referenced. Update the documentation to explain uncommenting that line and how dotenv supplies ENGINE_API_KEY so Apollo Engine metrics are sent; the tutorial should clearly acknowledge this setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript, node.js
Domain
backend, documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.