Skip to content

Commit c1cffc7

Browse files
author
Katerina Patticha
committed
chore(config): Fix deployment for /beta
1 parent e3fbe5d commit c1cffc7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

config/dev.webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = require('@redhat-cloud-services/frontend-components-config');
44
const { config: webpackConfig, plugins } = config({
55
rootFolder: resolve(__dirname, '../'),
66
debug: true,
7-
deployment: process.env.BETA ? 'beta/apps' : 'apps'
7+
...(process.env.BETA && { deployment: 'beta/apps' })
88
});
99

1010
plugins.push(

config/prod.webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ const { resolve } = require('path');
33
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
44
const config = require('@redhat-cloud-services/frontend-components-config');
55
const { config: webpackConfig, plugins } = config({
6-
rootFolder: resolve(__dirname, '../'),
7-
deployment: process.env.BETA ? 'beta/apps' : 'apps'
6+
rootFolder: resolve(__dirname, '../')
87
});
98

109
plugins.push(

0 commit comments

Comments
 (0)