hi there, welcome. where and how are you trying to set .env variables? We need a little more information on what you are trying to do before we can assist.
Thanks for answer… well they are set in Build & deploy key: GATSBY_CLIENT_EMAIL value: “projec…” it looks like it dont want to read quotation marks (") … on my computer works nice and if I get out quotation marks it runs same error like here
And using in gatsby-config on top I have
require(“dotenv”).config({
path: .env.${process.env.NODE_ENV},
})
and need to use it in
credentials: {
client_email: GATSBY_CLIENT_EMAIL,
private_key: GATSBY_PRIVATE_KEY
},
Hi, @Jinksi, thank you for sharing your solution and, @l0st0, thank you for sharing the solution that worked for you also. Both answers are likely to be helpful if someone searches the community site for similar errors.
@luke I am facing the same issue. But I am creating an environment variable to access my private keys with double-quotes. Settings > Build & deploy > Environment > Environment variables
Getting this error: