diff --git a/scripts/webpack/dev.client.config.js b/scripts/webpack/dev.client.config.js index 5c626108805..e3d6766bf59 100644 --- a/scripts/webpack/dev.client.config.js +++ b/scripts/webpack/dev.client.config.js @@ -59,12 +59,10 @@ module.exports = { 'self-hosted', // important terminating / so saml-redirect doesn't get targeted, too 'saml/' - ].reduce((obj, name) => { - obj[`/${name}`] = { - target: `http://localhost:${SOCKET_PORT}` - } - return obj - }, {}) + ].map((name) => ({ + context: [`/${name}`], + target: `http://localhost:${SOCKET_PORT}`, + })) }, infrastructureLogging: {level: 'warn'}, watchOptions: {