All PostsPosts filtered by: so notes
Environment variables with Gatsby and Netlify
Updated: June 24, 2019 by Tony Alves
Original: on Stackoverflow
Environment variables need to start with GATSBY_
in the client-side javascript as shown in the docs.
Use GATSBY_GOOGLE_API_KEY
and process.env.GATSBY_GOOGLE_API_KEY
for them to be accessed during the build and bundled into your Gatsby client code.