import { debug } from './shared/debug'; import { globalConfig } from './config'; import { storageServer } from './server'; export default async function globalSetup() { if (globalConfig.disabled) { debug('Global cache is disabled.'); return; } await storageServer.start({ basePath: globalConfig.basePath, }); globalConfig.update({ serverUrl: `http://localhost:${storageServer.port}`, }); }