import { isServer } from '@growi/core/dist/utils'; export const swrGlobalConfiguration = Object.assign( { errorRetryCount: 1, }, // set the request scoped cache provider in server isServer() ? { provider: (cache: any) => new Map(cache), } : {}, );