Merge pull request #33 from Bouncey/feat/auth0

Feat/auth0
This commit is contained in:
Stuart Taylor
2018-05-08 00:29:45 +01:00
committed by Mrugesh Mohapatra
parent 61cd404c41
commit 644f34d2ad
32 changed files with 2754 additions and 12828 deletions

View File

@ -95,6 +95,7 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
});
};
const webpack = require('webpack');
const generateBabelConfig = require('gatsby/dist/utils/babel-config');
exports.modifyWebpackConfig = ({ config, stage }) => {
@ -123,5 +124,12 @@ exports.modifyWebpackConfig = ({ config, stage }) => {
}
]
]);
config.plugin('DefinePlugin', webpack.DefinePlugin, [
{
AUTH0_DOMAIN: JSON.stringify(process.env.AUTH0_DOMAIN),
AUTH0_CLIENT_ID: JSON.stringify(process.env.AUTH0_CLIENT_ID),
AUTH0_NAMESPACE: JSON.stringify(process.env.AUTH0_NAMESPACE)
}
]);
});
};