Experimenting with docker and configuration

This commit is contained in:
2021-02-04 20:52:09 +11:00
parent a1c76a23be
commit e5a81c79e1
8 changed files with 281 additions and 14 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ module.exports = ({ production, analyzer }) => {
plugins: [
new DefinePlugin({
'process.env': {
'NEWS_URI': '"http://dev-news.eggtrainer.com:3100/news"',
'NEWS_KEY': '"key"',
'NEWS_URI': production ? `${process.env.NEWS_KEY}` : '"http://dev-news.eggtrainer.com:3100/news"',
'NEWS_KEY': production ? `${process.env.NEWS_KEY}` : 'key',
}
}),
new CleanWebpackPlugin({