Skip to content

Commit 798eca4

Browse files
author
Ives van Hoorne
committed
Call v2 packager
1 parent 6cf1640 commit 798eca4

File tree

1 file changed

+4
-0
lines changed
  • src/app/store/entities/sandboxes/bundler

1 file changed

+4
-0
lines changed

src/app/store/entities/sandboxes/bundler/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import logError from '../../../../utils/error';
88
const debug = _debug('cs:app:packager');
99

1010
export 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';
1819
async 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 {

0 commit comments

Comments
 (0)