Defining PERCY_TOKEN in a Gatsby project. #25873
domvillegas
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I hope you're doing well.
I'm running into a small problem accessing the value of
PERCY_TOKENin my Gatsby project when runningpercy exec -- cypress run. I can access the value ofPERCY_TOKENif the value exists in a.envfile at the root of the project. Though, it's recommended by the Gatsby team to create a.env.developmentfile instead of a.envfile, which isn't being recognized by Cypress because of the.developmentpart of the filename; so when I place the value of PERCY_TOKEN in this file, I can't access this value when runningpercy exec -- cypress run.I'd like to avoid creating a new
.envfile just for this variable so I'm wondering if anyone has any ideas on how to access the value ofPERCY_TOKENfrom inside the Gatsby recommended.env.development.Beta Was this translation helpful? Give feedback.
All reactions