apollographql / apollographql/fullstack-tutorial

Missing step to uncomment dotenv configuration

未关闭
#76 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.2k
派生
808
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从生产教程中 API 密钥部分附近开始,检查第 1 行的 server/src/index.js,其中引用了 dotenv 配置。更新文档,解释如何取消该行的注释,以及 dotenv 如何提供 ENGINE_API_KEY 以发送 Apollo Engine 指标;教程应明确说明这一设置。

由索引模型根据 Issue 内容生成。

评估

技术栈
graphql, javascript, node.js
领域
backend, documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。