host: 'example.outsmartly.app',
origin: 'https://my-example-website.vercel.app',
// All routes will have this middleware applied
async function firstMiddleware(event, next) {
event.messageBus.once('YourCustomMessages.COMPONENT_OVERRIDDEN', (message) => {
event.log('Message received!', message);
path: '/some-base-path/*',
component: 'ExampleComponent',
async getOverrideProps(event) {
const headline = 'hello, world';
// Perhaps you want to notify some middleware that
event.messageBus.emit('YourCustomMessages.COMPONENT_OVERRIDDEN', {