Resolve the procore CDN
npm install @procore/cdnBrowsers only allow 6 current requests to the same domain. In order to overcome this restriction procore has 4
subdomains for fastly. This helper function will alternate between the subdomains in a sequence of 0-3 by default. The results are memoized, the same string will result with the same value.
``javascript`
cdn(numberOfDomains: number) {
return cached(bgImg: string)
return string
}
`javascript
import _cdn from '@procore/cdn';
import testImg from './test.png';
import bgImg from './bg.jpg';
const cdn = _cdn(4)
const App = () => {
return (
} />
/*