UNPKG

corporate-frontend-mithril

Version:

Corporate frontend MithrilJS modules

30 lines (28 loc) 1.34 kB
let href = window.location.href; let hostName = window.location.hostname; //AEM dispatcher reverse proxy config. e.g. cws-dev.sydney.edu.au/rpa-server/ let apiHostName = href.includes('aem-board') ? `${hostName}/rpa-server` : `${hostName}:7071`; //AEM dispatcher reverse proxy config e.g cws-dev.sydney.edu.au/rpa-bucket/ let outputPathName = href.includes('aem-board') ? `${hostName}/rpa-bucket` : `${hostName}:7080`; module.exports = { env: 'production', //DEV or PROD //regression-test-server root path apiRootPath: `${window.location.protocol}//${apiHostName}`, //regression-test-puppeteer server root path outputPath: `${window.location.protocol}//${outputPathName}`, ams: [ {server: 'dev', instance: 'author1'}, {server: 'dev', instance: 'publish1'}, {server: 'test', instance: 'author1'}, {server: 'test', instance: 'publish1'}, {server: 'test', instance: 'publish2'}, {server: 'train', instance: 'author1'}, {server: 'train', instance: 'publish1'}, {server: 'train', instance: 'publish2'}, {server: 'train', instance: 'publish3'}, {server: 'prod', instance: 'author1'}, {server: 'prod', instance: 'publish1'}, {server: 'prod', instance: 'publish2'}, {server: 'prod', instance: 'publish3'}, ], };