mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-25 19:34:48 +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 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'
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -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(`
|
||||||
|
Loading…
Reference in New Issue
Block a user