fix(gatsby): require gatsby-config.js before accessing process.env (#28572)
fix(gatsby): require gatsby-config.js before accessing process.env (#28572)

Co-authored-by: Max Truxa <34c6fceca75e456f25e7e99531e2425c6c1de443@maxtruxa.com>
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby