diff --git a/changelog.d/20240206_100528_arbrandes_fix_dev_runtime_config.md b/changelog.d/20240206_100528_arbrandes_fix_dev_runtime_config.md new file mode 100644 index 00000000..57bad651 --- /dev/null +++ b/changelog.d/20240206_100528_arbrandes_fix_dev_runtime_config.md @@ -0,0 +1 @@ +- [Bugfix] Fix MFE runtime config via site configuration in dev mode (by @arbrandes). diff --git a/tutormfe/templates/mfe/apps/mfe/webpack.dev-tutor.config.js b/tutormfe/templates/mfe/apps/mfe/webpack.dev-tutor.config.js index ee7f9ccb..8f27e025 100644 --- a/tutormfe/templates/mfe/apps/mfe/webpack.dev-tutor.config.js +++ b/tutormfe/templates/mfe/apps/mfe/webpack.dev-tutor.config.js @@ -15,7 +15,10 @@ module.exports = merge(baseDevConfig, { // https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md allowedHosts: 'all', proxy: { - '/api/mfe_config/v1' : 'http://{{ LMS_HOST }}:8000', + '/api/mfe_config/v1': { + target: 'http://{{ LMS_HOST }}:8000', + changeOrigin: true, + } } }, })