1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 01:46:51 +01:00

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 'dotenv/config'
// required for gatsby-plugin-meta-redirect
import 'regenerator-runtime/runtime'
import siteConfig from './config'

View File

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

View File

@ -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(`