@@ -18,24 +18,24 @@ const VERSION = 1;
1818
1919const BUCKET_URL =
2020 process . env . NODE_ENV === 'production' || process . env . NODE_ENV === 'test'
21- ? 'https://prod-packager-packages.codesandbox.io '
21+ ? 'https://d1jyvh0kxilfa7.cloudfront.net '
2222 : 'https://dev-packager-packages.codesandbox.io' ;
2323
24- // const NEW_PACKAGER_URL =
25- // 'https://aiwi8rnkp5.execute-api.eu-west-1.amazonaws.com/prod/packages';
24+ const NEW_PACKAGER_URL =
25+ 'https://aiwi8rnkp5.execute-api.eu-west-1.amazonaws.com/prod/packages' ;
2626
2727const PACKAGER_URL =
2828 process . env . NODE_ENV === 'production' || process . env . NODE_ENV === 'test'
29- ? 'https://aiwi8rnkp5 .execute-api.eu-west-1.amazonaws.com/prod/packages'
29+ ? 'https://drq28qbjmc .execute-api.eu-west-1.amazonaws.com/prod/packages'
3030 : 'https://xi5p9f7czk.execute-api.eu-west-1.amazonaws.com/dev/packages' ;
3131
32- // function warmupPackager(url: string, method = 'GET') {
33- // fetch(url, {
34- // method,
35- // })
36- // .then(() => {})
37- // .catch(() => {});
38- // }
32+ function warmupPackager ( url : string , method = 'GET' ) {
33+ fetch ( url , {
34+ method,
35+ } )
36+ . then ( ( ) => { } )
37+ . catch ( ( ) => { } ) ;
38+ }
3939
4040function callApi ( url : string , method = 'GET' ) {
4141 return fetch ( url , {
@@ -122,7 +122,7 @@ async function getDependencies(dependencies: Object) {
122122 const bucketDependencyUrl = dependenciesToBucketPath ( absoluteDependencies ) ;
123123
124124 setScreen ( { type : 'loading' , text : 'Downloading Dependencies...' } ) ;
125- // warmupPackager(`${NEW_PACKAGER_URL}/${dependencyUrl}`, 'POST');
125+ warmupPackager ( `${ NEW_PACKAGER_URL } /${ dependencyUrl } ` , 'POST' ) ;
126126 try {
127127 const bucketManifest = await callApi (
128128 `${ BUCKET_URL } /${ bucketDependencyUrl } `
0 commit comments