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 .cache
/public /public
.DS_Store .DS_Store
.env.development .env
.env.production .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: For local development, you can simply create one and use it in your local .env file:
```bash ```bash
cp .env.sample .env.development cp .env.sample .env
vi .env.development vi .env
# GITHUB_TOKEN=ADD-YOUR-TOKEN-HERE # GITHUB_TOKEN=ADD-YOUR-TOKEN-HERE
``` ```

View File

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

View File

@ -11,6 +11,7 @@ import { ReactComponent as Arrow } from '../images/arrow.svg'
import styles from './index.module.scss' import styles from './index.module.scss'
const SectionLink = ({ to, title, color, children }) => { const SectionLink = ({ to, title, color, children }) => {
// eslint-disable-next-line
let classNames = classnames(styles.link, { let classNames = classnames(styles.link, {
[styles.purple]: color === 'purple', [styles.purple]: color === 'purple',
[styles.blue]: color === 'blue', [styles.blue]: color === 'blue',