-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Upload Nuxt and SvelteKit example stats #138
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -327,8 +327,12 @@ jobs: | |
env: | ||
NEXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
NEXT_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
NUXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
NUXT_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
ROLLUP_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
ROLLUP_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
SVELTEKIT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
SVELTEKIT_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
VITE_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
VITE_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
WEBPACK_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
|
@@ -390,8 +394,12 @@ jobs: | |
env: | ||
NEXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} | ||
NEXT_API_URL: ${{ secrets.CODECOV_STAGING_API_URL }} | ||
NUXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
NUXT_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
ROLLUP_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} | ||
ROLLUP_API_URL: ${{ secrets.CODECOV_STAGING_API_URL }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the |
||
SVELTEKIT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
SVELTEKIT_API_URL: ${{ secrets.CODECOV_API_URL }} | ||
VITE_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} | ||
VITE_API_URL: ${{ secrets.CODECOV_STAGING_API_URL }} | ||
WEBPACK_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,10 @@ export default defineNuxtConfig({ | |
[ | ||
"@codecov/nuxt-plugin", | ||
{ | ||
dryRun: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
enableBundleAnalysis: true, | ||
bundleName: "@codecov/example-nuxt-app", | ||
uploadToken: process.env.VITE_UPLOAD_TOKEN, | ||
apiUrl: process.env.VITE_API_URL, | ||
uploadToken: process.env.NUXT_UPLOAD_TOKEN, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good change to avoid hardcoding the uploadToken and apiUrl. Using environment variables improves security and maintains consistency with other configurations. |
||
apiUrl: process.env.NUXT_API_URL, | ||
}, | ||
], | ||
], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ export default defineConfig({ | |
plugins: [ | ||
sveltekit(), | ||
codecovSvelteKitPlugin({ | ||
dryRun: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
enableBundleAnalysis: true, | ||
uploadToken: "test-token", | ||
bundleName: "@codecov/example-sveltekit-app", | ||
uploadToken: process.env.SVELTEKIT_UPLOAD_TOKEN, | ||
apiUrl: process.env.SVELTEKIT_API_URL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good change to avoid hardcoding the uploadToken. Using environment variables improves security and keeps consistency with other configurations. |
||
}), | ||
], | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the
NUXT_UPLOAD_TOKEN
, it seems like we're using the production token (CODECOV_ORG_TOKEN
) instead of the staging token (CODECOV_ORG_TOKEN_STAGING
). If this block is for a staging environment, we might need to use the staging token.