Skip to content

Commit 92d70e9

Browse files
committed
Move to new packager
1 parent 91a4052 commit 92d70e9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/app/src/sandbox/npm/fetch-dependencies.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ const VERSION = 1;
1818

1919
const BUCKET_URL =
2020
process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'
21-
? 'https://d1jyvh0kxilfa7.cloudfront.net'
21+
? 'https://prod-packager-packages.codesandbox.io'
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

2727
const PACKAGER_URL =
2828
process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'
29-
? 'https://drq28qbjmc.execute-api.eu-west-1.amazonaws.com/prod/packages'
29+
? 'https://aiwi8rnkp5.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

4040
function 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

Comments
 (0)