added graphql env variable

This commit is contained in:
Sean Macfarlane
2020-06-08 18:19:19 -04:00
parent f98a2bb83f
commit 0fe351691e
3 changed files with 13 additions and 5 deletions

View File

@@ -1,4 +1,7 @@
const HtmlWebPackPlugin = require('html-webpack-plugin');
/* eslint-disable import/no-extraneous-dependencies */
const webpack = require('webpack');
const commonPaths = require('./paths');
module.exports = {
@@ -43,5 +46,8 @@ module.exports = {
template: commonPaths.templatePath,
favicon: './app/images/favicon.ico',
}),
new webpack.DefinePlugin({
'process.env.GRAPHQL_URL': JSON.stringify(process.env.GRAPHQL_URL),
}),
],
};