Environment variable undefined in GatsbyJS?
Debug environment variables when setting up GatsbyJS with headless Wordpress
GatsbyJS talks to headless Wordpress via a GraphQL endpoint which you can specify using an environment variable. Here's how you can debug it when setting up the connection.