-
Notifications
You must be signed in to change notification settings - Fork 651
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
.env.development
is not read by gatstby-config.js
#9175
Comments
I put |
Codespaces would at least eliminate the "works/doesn't work on my machine" issue. We can icebox this if no one can reproduce, but...
Did you also check to see if you have a |
Expected behavior
.env.development
and.env.production
files are read at the top ofgatsby-config.js
and thenpm start
process kicks off normallyActual behavior
GITHUB_API
value isundefined
leading to a Bad Credentials error.Steps to reproduce the problem
GITHUB_API
defined anywhere else (e.g. in a.envrc
,.bashrc
or.zshrc
, remove/comment out that line.env.development
and/or.env.production
npm start
ornpm run develop
The text was updated successfully, but these errors were encountered: