It's a placeholder, you can either paste in a string or (my recommendation), put it in an .env file and reference like bearer ${process.env.HASURA_TOKEN}, where your .env file has a row like HASURA_TOKEN='token-string'. Gatsby docs about environment variables here: gatsbyjs.org/docs/environment-vari...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Where does the token actually come from in the gatsby config. I am getting an error
ReferenceError: token is not defined
Please help.
It's a placeholder, you can either paste in a string or (my recommendation), put it in an .env file and reference like
bearer ${process.env.HASURA_TOKEN}
, where your .env file has a row likeHASURA_TOKEN='token-string'
. Gatsby docs about environment variables here: gatsbyjs.org/docs/environment-vari...