import createBrowserHistory from "history/createBrowserHistory" ; import * as serviceWorker from "./serviceWorker" ; import { setupUI } from "./ui" ; import { createServices } from "./services" ; export async function main ( ) { const inMemory = process . env . REACT_APP_IN_MEMORY === 'true' ; const history = createBrowserHistory ( { basename : process . env . PUBLIC_URL , } ) ; const services = await createServices ( { history , inMemory } ) ; setupUI ( { services , history } ) ; serviceWorker . unregister ( ) ; }