1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

.env tweaks

This commit is contained in:
Matthias Kretschmann 2018-11-10 19:49:44 +01:00
parent 6eaf7619b9
commit 2cb3a08b7b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 6 additions and 8 deletions

4
.gitignore vendored
View File

@ -5,5 +5,5 @@ yarn-error.log
.cache
/public
.DS_Store
.env.development
.env.production
.env
.env.*

View File

@ -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
```

View File

@ -1,8 +1,5 @@
const config = require('./config.js')
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`
})
require('dotenv').config()
module.exports = {
siteMetadata: {

View File

@ -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',