mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
.env tweaks
This commit is contained in:
parent
6eaf7619b9
commit
2cb3a08b7b
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,5 +5,5 @@ yarn-error.log
|
||||
.cache
|
||||
/public
|
||||
.DS_Store
|
||||
.env.development
|
||||
.env.production
|
||||
.env
|
||||
.env.*
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
@ -1,8 +1,5 @@
|
||||
const config = require('./config.js')
|
||||
|
||||
require('dotenv').config({
|
||||
path: `.env.${process.env.NODE_ENV}`
|
||||
})
|
||||
require('dotenv').config()
|
||||
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user