-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing env variables #28
Comments
This line means that Are you sure you created a token with the correct scopes required as per the README? |
Yes, I have a token from onegraph with the app id.
So I removed the github attribute from FooterQuery to see where the problem came from and saw the program couldn't join the graphql api. |
Right -- that error would be because the Github schema wasn't sourced (401) and so the Could you paste your |
Here it is:
|
And you've validated that You can feel free to message me a zip of your project or something on Twitter (schaudustin) or e-mail at dustin @ gatsbyjs dot com |
I created a personal token on https://github.com/settings/tokens and another on https://www.onegraph.com/. I don't know which one I'm meant to use or how to validate it. :/ |
I didn't change anything from your original repo, I just want to see how it works. The problem seems to be related to the access to env variables or the access to graphql. |
Hi,
I copied the .env.sample file to a .env.development one and added my github token to GITHUB_API_TOKEN.
But when I run gatsby develop, I still get the following error:
In my browser, I still can't access the env variables (GITHUB_API_TOKEN and GATSBY_OG_APP_ID).
Am I meant to add some plugins like webpack / define to get gatsby-mail work?
The text was updated successfully, but these errors were encountered: