diff --git a/.env.template b/.env.template new file mode 100644 index 000000000..4313645bb --- /dev/null +++ b/.env.template @@ -0,0 +1,2 @@ +JWT_SECRET="b/&&7b78BF&fv/Vd" +MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ" diff --git a/README.md b/README.md index b82c75999..3a563eff9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/nuxt.config.js b/nuxt.config.js index be8da36c5..46eed5420 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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')