import { BootstrapContext } from '@wix/wix-bootstrap-ng/typed'; import { AppContext, Config } from './types'; export = (context: BootstrapContext): AppContext => { // load your app-specific configuration values const { petriScopes, baseDomain } = context.config.load( '{%projectName%}', ); // return your app-specific context - an object which contains your domain singletons // (eg DB connections, kafka producers/consumers) shared by all your express, websocket and RPC services. // you may return a Promise which resolves to an object, in that case bootstrap startup sequence will wait for // that promise to resolve before bringing up the listeners (HTTP/kafka/RPC). return { petriScopes, baseDomain, } as AppContext; };