mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Moved JWT_TOKEN and MAPBOX_TOKEN to .env
This commit is contained in:
parent
8b5c59d39a
commit
d1f0131e0e
2
.env.template
Normal file
2
.env.template
Normal file
@ -0,0 +1,2 @@
|
||||
JWT_SECRET="b/&&7b78BF&fv/Vd"
|
||||
MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ"
|
||||
@ -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
|
||||
|
||||
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user