Skip to content

Commit 6ffbf8a

Browse files
committed
Revert "Force prod packager for development as well"
This reverts commit b95e40b.
1 parent b95e40b commit 6ffbf8a

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

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

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,18 @@ const debug = _debug('cs:sandbox:packager');
1515

1616
const VERSION = 1;
1717

18-
// Enable this once we are going to work on the new packager again, now force to prod, also in dev
19-
// const BUCKET_URL =
20-
// process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'
21-
// ? 'https://dev-packager-packages.codesandbox.io'
22-
// : 'https://d1jyvh0kxilfa7.cloudfront.net';
23-
const BUCKET_URL = 'https://dev-packager-packages.codesandbox.io';
18+
const BUCKET_URL =
19+
process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'
20+
? 'https://dev-packager-packages.codesandbox.io'
21+
: 'https://d1jyvh0kxilfa7.cloudfront.net';
2422

2523
const NEW_PACKAGER_URL =
2624
'https://aiwi8rnkp5.execute-api.eu-west-1.amazonaws.com/prod/packages';
2725

28-
// Enable this once we are going to work on the new packager again, now force to prod, also in dev
29-
// const PACKAGER_URL =
30-
// process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'
31-
// ? 'https://xi5p9f7czk.execute-api.eu-west-1.amazonaws.com/dev/packages'
32-
// : 'https://drq28qbjmc.execute-api.eu-west-1.amazonaws.com/prod/packages';
33-
3426
const PACKAGER_URL =
35-
'https://xi5p9f7czk.execute-api.eu-west-1.amazonaws.com/dev/packages';
27+
process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test'
28+
? 'https://xi5p9f7czk.execute-api.eu-west-1.amazonaws.com/dev/packages'
29+
: 'https://drq28qbjmc.execute-api.eu-west-1.amazonaws.com/prod/packages';
3630

3731
function warmupPackager(url: string, method = 'GET') {
3832
fetch(url, {

0 commit comments

Comments
 (0)