Moved JWT_TOKEN and MAPBOX_TOKEN to .env

This commit is contained in:
Grzegorz Leoniec 2019-01-04 14:59:23 +01:00
parent 8b5c59d39a
commit d1f0131e0e
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
3 changed files with 9 additions and 1 deletions

2
.env.template Normal file
View File

@ -0,0 +1,2 @@
JWT_SECRET="b/&&7b78BF&fv/Vd"
MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ"

View File

@ -15,6 +15,12 @@ $ yarn styleguide:build
$ yarn install
```
Copy:
```
cp .env.template .env
```
Configure the file `.env` according to your needs and your local setup.
### Development
``` bash
# serve with hot reload at localhost:3000

View File

@ -1,5 +1,5 @@
const pkg = require('./package')
const envWhitelist = ['NODE_ENV', 'MAINTENANCE']
const envWhitelist = ['NODE_ENV', 'MAINTENANCE', 'MAPBOX_TOKEN']
const dev = process.env.NODE_ENV !== 'production'
const path = require('path')