File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
packages/app/src/sandbox/npm Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -17,30 +17,14 @@ const host = process.env.CODESANDBOX_HOST;
1717
1818const VERSION = 1 ;
1919
20- /**
21- * Warm the cache of our new API
22- */
23- const warmNewPackagerAPI = ( url : string , method : string = 'GET' ) => {
24- try {
25- fetch ( url , { method } )
26- . then ( ( ) => { } )
27- . catch ( ( ) => { } ) ;
28- } catch ( e ) {
29- /* ignore */
30- }
31- } ;
32-
3320const BUCKET_URL =
3421 process . env . NODE_ENV === 'production' || process . env . NODE_ENV === 'test'
35- ? 'https://d1jyvh0kxilfa7.cloudfront.net '
22+ ? 'https://prod-packager-packages.csb.dev '
3623 : 'https://s3-eu-west-1.amazonaws.com/dev.packager.packages' ;
3724
38- const NEW_PACKAGER_URL =
39- 'https://aiwi8rnkp5.execute-api.eu-west-1.amazonaws.com/prod/packages' ;
40-
4125const PACKAGER_URL =
4226 process . env . NODE_ENV === 'production' || process . env . NODE_ENV === 'test'
43- ? 'https://drq28qbjmc .execute-api.eu-west-1.amazonaws.com/prod/packages'
27+ ? 'https://aiwi8rnkp5 .execute-api.eu-west-1.amazonaws.com/prod/packages'
4428 : 'https://8o2xeuyo66.execute-api.eu-west-1.amazonaws.com/dev/packages' ;
4529
4630function callApi ( url : string , method = 'GET' ) {
@@ -162,7 +146,6 @@ async function getDependencies(dependencies: Object) {
162146
163147 setScreen ( { type : 'loading' , text : 'Downloading Dependencies...' } ) ;
164148 try {
165- warmNewPackagerAPI ( `${ NEW_PACKAGER_URL } /${ dependencyUrl } ` , 'POST' ) ;
166149 const bucketManifest = await callApi (
167150 `${ BUCKET_URL } /${ bucketDependencyUrl } `
168151 ) ;
You can’t perform that action at this time.
0 commit comments