Skip to content

Commit 425ca53

Browse files
committed
upload bundle analyzer example also to staging
1 parent 366bfa9 commit 425ca53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/bundle-analyzer-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"type": "module",
2020
"scripts": {
21-
"build": "rollup -c && pnpm bundle-analyzer ./dist --bundle-name=@codecov/example-bundle-analyzer-cli --upload-token=$BUNDLE_ANALYZER_UPLOAD_TOKEN --config-file=./baconfig.json"
21+
"build": "rollup -c && pnpm bundle-analyzer ./dist -v --bundle-name=@codecov/example-bundle-analyzer-cli --upload-token=$BUNDLE_ANALYZER_UPLOAD_TOKEN --api-url=$BUNDLE_ANALYZER_API_URL --config-file=./baconfig.json"
2222
},
2323
"devDependencies": {
2424
"@codecov/bundle-analyzer": "workspace:^",

examples/bundle-analyzer-lib-cjs/analyze.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const coreOpts = {
66
dryRun: false,
77
uploadToken: process.env.BUNDLE_ANALYZER_UPLOAD_TOKEN,
88
retryCount: 3,
9-
apiUrl: "https://api.codecov.io",
9+
apiUrl: process.env.BUNDLE_ANALYZER_API_URL,
1010
bundleName: "@codecov/example-bundle-analyzer-cjs",
1111
enableBundleAnalysis: true,
1212
debug: true,

examples/bundle-analyzer-lib-esm/analyze.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const coreOpts: Options = {
1010
dryRun: false,
1111
uploadToken: process.env.BUNDLE_ANALYZER_UPLOAD_TOKEN,
1212
retryCount: 3,
13-
apiUrl: "https://api.codecov.io",
13+
apiUrl: process.env.BUNDLE_ANALYZER_API_URL,
1414
bundleName: "@codecov/example-bundle-analyzer-esm",
1515
enableBundleAnalysis: true,
1616
debug: true,

0 commit comments

Comments
 (0)