fix(tools): use docker for development

This commit is contained in:
Valeriy
2019-02-07 01:36:33 +03:00
committed by mrugesh mohapatra
parent f1360f1fa7
commit 11cc25b638
2 changed files with 77 additions and 31 deletions

View File

@ -6,7 +6,11 @@ const {
localeChallengesRootDir
} = require('./utils/buildChallenges');
const { NODE_ENV: env, LOCALE: locale = 'english' } = process.env;
const {
NODE_ENV: env,
LOCALE: locale = 'english',
API_PROXY: proxyUrl = 'http://localhost:3000'
} = process.env;
const selectedGuideDir = `../${
env === 'production' ? 'guide' : 'mock-guide'
@ -21,7 +25,7 @@ module.exports = {
},
proxy: {
prefix: '/internal',
url: 'http://localhost:3000'
url: proxyUrl
},
plugins: [
'gatsby-plugin-react-helmet',