mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 01:46:51 +01:00
move dotenv
This commit is contained in:
parent
b2560972b6
commit
8fbf35efdf
@ -1,17 +1,4 @@
|
|||||||
import type { GatsbyConfig } from 'gatsby'
|
import type { GatsbyConfig } from 'gatsby'
|
||||||
import * as dotenv from 'dotenv'
|
|
||||||
|
|
||||||
dotenv.config()
|
|
||||||
|
|
||||||
if (!process.env.GITHUB_TOKEN) {
|
|
||||||
// eslint-disable-next-line
|
|
||||||
console.warn(`
|
|
||||||
|
|
||||||
⚠️ A GitHub token as GITHUB_TOKEN is required to build some parts of the blog.
|
|
||||||
⚠️ Check the README https://github.com/kremalicious/blog#-development.
|
|
||||||
|
|
||||||
`)
|
|
||||||
}
|
|
||||||
|
|
||||||
import siteConfig from './config'
|
import siteConfig from './config'
|
||||||
import sources from './gatsby/sources'
|
import sources from './gatsby/sources'
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
import * as dotenv from 'dotenv'
|
||||||
|
|
||||||
|
dotenv.config()
|
||||||
|
|
||||||
|
if (!process.env.GITHUB_TOKEN) {
|
||||||
|
// eslint-disable-next-line
|
||||||
|
console.warn(`
|
||||||
|
|
||||||
|
⚠️ A GitHub token as GITHUB_TOKEN is required to build some parts of the blog.
|
||||||
|
⚠️ Check the README https://github.com/kremalicious/blog#-development.
|
||||||
|
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user