mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 10:25:00 +01:00
parent
33620b5a9a
commit
6897ffc463
@ -1 +1 @@
|
|||||||
#GATSBY_GITHUB_TOKEN=
|
GATSBY_GITHUB_TOKEN=xxx
|
||||||
|
@ -158,6 +158,7 @@ git clone git@github.com:kremalicious/portfolio.git
|
|||||||
cd portfolio/
|
cd portfolio/
|
||||||
|
|
||||||
# GATSBY_GITHUB_TOKEN is required for some parts
|
# GATSBY_GITHUB_TOKEN is required for some parts
|
||||||
|
# See https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
|
||||||
cp .env.sample .env
|
cp .env.sample .env
|
||||||
vi .env
|
vi .env
|
||||||
|
|
||||||
|
@ -8,6 +8,16 @@ const { name, website } = resume.basics
|
|||||||
|
|
||||||
require('dotenv').config()
|
require('dotenv').config()
|
||||||
|
|
||||||
|
if (
|
||||||
|
!process.env.GATSBY_GITHUB_TOKEN ||
|
||||||
|
process.env.GATSBY_GITHUB_TOKEN === 'xxx'
|
||||||
|
) {
|
||||||
|
throw Error(`
|
||||||
|
⚠️ A GitHub token as GATSBY_GITHUB_TOKEN is required to build some parts of the blog.
|
||||||
|
⚠️ Check the README https://github.com/kremalicious/portfolio#-development.
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
siteUrl: `${website}`
|
siteUrl: `${website}`
|
||||||
|
Loading…
Reference in New Issue
Block a user