1
0
Fork 0

change init of dotenv

This commit is contained in:
Matthias Kretschmann 2023-08-17 14:03:25 +01:00
parent 1d71df9b92
commit cc6549b0d3
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import type { GatsbyConfig } from 'gatsby' import type { GatsbyConfig } from 'gatsby'
import 'dotenv/config'
// required for gatsby-plugin-meta-redirect // required for gatsby-plugin-meta-redirect
import 'regenerator-runtime/runtime' import 'regenerator-runtime/runtime'
import siteConfig from './config' import siteConfig from './config'

View File

@ -172,7 +172,8 @@ export const onCreateWebpackConfig: GatsbyNode['onCreateWebpackConfig'] =
util: false, util: false,
crypto: false, crypto: false,
path: false, path: false,
url: false url: false,
process: false
} }
} }
}) })

View File

@ -1,8 +1,5 @@
import * as dotenv from 'dotenv'
import path from 'path' import path from 'path'
dotenv.config()
if (!process.env.GITHUB_TOKEN) { if (!process.env.GITHUB_TOKEN) {
// eslint-disable-next-line // eslint-disable-next-line
console.warn(` console.warn(`