Skip to content

Commit 40bb925

Browse files
authored
docs(readme): add FAQs section (#191)
1 parent be5181e commit 40bb925

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

gatsby-source-graphcms/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,19 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
353353
<!-- prettier-ignore-end -->
354354

355355
<!-- ALL-CONTRIBUTORS-LIST:END -->
356+
357+
## FAQs
358+
359+
<details>
360+
<summary>"endpoint" is required</summary>
361+
362+
If you are using environment variables, make sure to include `require("dotenv").config();` inside your `gatsby-config.js`.
363+
364+
If it's already included, make sure you have your ENV variable added to `.env`, or `.env.local` without spaces.
365+
</details>
366+
367+
<details>
368+
<summary>"message": "not allowed"</summary>
369+
370+
This error occurs most likely if your token doesn't have access to the `PUBLISHED` content stage. Configure your token to also access `PUBLISHED`, or specify `stages: ["DRAFT"]` to the options inside `gatsby-config.js`.
371+
</details>

0 commit comments

Comments
 (0)