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
|
.cache
|
||||||
/public
|
/public
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.env.development
|
.env
|
||||||
.env.production
|
.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:
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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: {
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user