From 2cb3a08b7bb948447902c9bd7247d9110546496c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 10 Nov 2018 19:49:44 +0100 Subject: [PATCH] .env tweaks --- .gitignore | 4 ++-- README.md | 4 ++-- gatsby-config.js | 5 +---- src/pages/index.js | 1 + 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 524850f1..adeedae8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,5 @@ yarn-error.log .cache /public .DS_Store -.env.development -.env.production +.env +.env.* diff --git a/README.md b/README.md index 650c8021..03f5ec9c 100644 --- a/README.md +++ b/README.md @@ -141,8 +141,8 @@ An environment variable `GITHUB_TOKEN` needs to present, filled with a [personal For local development, you can simply create one and use it in your local .env file: ```bash -cp .env.sample .env.development -vi .env.development +cp .env.sample .env +vi .env # GITHUB_TOKEN=ADD-YOUR-TOKEN-HERE ``` diff --git a/gatsby-config.js b/gatsby-config.js index f6e11a76..d86c6508 100755 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,8 +1,5 @@ const config = require('./config.js') - -require('dotenv').config({ - path: `.env.${process.env.NODE_ENV}` -}) +require('dotenv').config() module.exports = { siteMetadata: { diff --git a/src/pages/index.js b/src/pages/index.js index 9976ddc4..69b76e9f 100755 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -11,6 +11,7 @@ import { ReactComponent as Arrow } from '../images/arrow.svg' import styles from './index.module.scss' const SectionLink = ({ to, title, color, children }) => { + // eslint-disable-next-line let classNames = classnames(styles.link, { [styles.purple]: color === 'purple', [styles.blue]: color === 'blue',