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:
parent
1d71df9b92
commit
cc6549b0d3
@ -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'
|
||||
|
@ -172,7 +172,8 @@ export const onCreateWebpackConfig: GatsbyNode['onCreateWebpackConfig'] =
|
||||
util: false,
|
||||
crypto: false,
|
||||
path: false,
|
||||
url: false
|
||||
url: false,
|
||||
process: false
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -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(`
|
||||
|
Loading…
Reference in New Issue
Block a user