diff --git a/gatsby-config.ts b/gatsby-config.ts index 20a97ea2..83e1f56f 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -1,4 +1,5 @@ import type { GatsbyConfig } from 'gatsby' +import 'dotenv/config' // required for gatsby-plugin-meta-redirect import 'regenerator-runtime/runtime' import siteConfig from './config' diff --git a/gatsby-node.ts b/gatsby-node.ts index 8db17512..6fc964a2 100644 --- a/gatsby-node.ts +++ b/gatsby-node.ts @@ -172,7 +172,8 @@ export const onCreateWebpackConfig: GatsbyNode['onCreateWebpackConfig'] = util: false, crypto: false, path: false, - url: false + url: false, + process: false } } }) diff --git a/gatsby/sources.ts b/gatsby/sources.ts index 0b8836c3..87a27859 100644 --- a/gatsby/sources.ts +++ b/gatsby/sources.ts @@ -1,8 +1,5 @@ -import * as dotenv from 'dotenv' import path from 'path' -dotenv.config() - if (!process.env.GITHUB_TOKEN) { // eslint-disable-next-line console.warn(`