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
-
Hello!
I hope you're doing well.
I'm running into a small problem accessing the value of
PERCY_TOKEN
in my Gatsby project when runningpercy exec -- cypress run
. I can access the value ofPERCY_TOKEN
if the value exists in a.env
file at the root of the project. Though, it's recommended by the Gatsby team to create a.env.development
file instead of a.env
file, which isn't being recognized by Cypress because of the.development
part 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
.env
file just for this variable so I'm wondering if anyone has any ideas on how to access the value ofPERCY_TOKEN
from inside the Gatsby recommended.env.development
.Beta Was this translation helpful? Give feedback.
All reactions