1
0
Fork 0

move dotenv

This commit is contained in:
Matthias Kretschmann 2022-11-20 01:05:16 +00:00
parent b2560972b6
commit 8fbf35efdf
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 13 additions and 13 deletions

View File

@ -1,17 +1,4 @@
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 sources from './gatsby/sources'

View File

@ -1,4 +1,17 @@
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 [
{