diff options
Diffstat (limited to 'src/boot/after_store.js')
| -rw-r--r-- | src/boot/after_store.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 0d1cabd5..07337595 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -42,8 +42,17 @@ const afterStoreSetup = ({ store, i18n }) => { return {} }) .then((staticConfig) => { + const overrides = window.___pleromafe_dev_overrides || {} + const env = window.___pleromafe_mode.NODE_ENV + // This takes static config and overrides properties that are present in apiConfig - var config = Object.assign({}, staticConfig, apiConfig) + let config = {} + if (overrides.staticConfigPreference && env === 'development') { + console.warn('OVERRIDING API CONFIG WITH STATIC CONFIG') + config = Object.assign({}, apiConfig, staticConfig) + } else { + config = Object.assign({}, staticConfig, apiConfig) + } var theme = (config.theme) var background = (config.background) |
