File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/app/store/entities/sandboxes/bundler Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import logError from '../../../../utils/error';
88const debug = _debug ( 'cs:app:packager' ) ;
99
1010export const PACKAGER_URL = 'https://cdn.jsdelivr.net/webpack/v1' ;
11+ export const PACKAGER_V2_URL = 'https://cdn.jsdelivr.net/webpack/v2' ;
1112
1213/**
1314 * Request the packager, if retries > 4 it will throw if something goes wrong
@@ -18,6 +19,9 @@ export const PACKAGER_URL = 'https://cdn.jsdelivr.net/webpack/v1';
1819async function requestPackager ( query : string ) {
1920 let retries = 0 ;
2021
22+ // Request packager v2 for cache warmup
23+ callApi ( `${ PACKAGER_V2_URL } /${ query } /manifest.json` ) ;
24+
2125 while ( true ) {
2226 debug ( `Trying to call packager for ${ retries } time` ) ;
2327 try {
You can’t perform that action at this time.
0 commit comments