Skip to content
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

🚀 Pipeline - Measure bundle size on PR #3671

Open
2 tasks
babakamyljanovssw opened this issue Mar 4, 2025 · 1 comment · May be fixed by #3678
Open
2 tasks

🚀 Pipeline - Measure bundle size on PR #3671

babakamyljanovssw opened this issue Mar 4, 2025 · 1 comment · May be fixed by #3678
Assignees

Comments

@babakamyljanovssw
Copy link
Member

babakamyljanovssw commented Mar 4, 2025

cc: @amankumarrr @wicksipedia

Description

We need an automated way to monitor the initial bundle size of a page, rather than manually checking it through the build process or PageSpeed Insights. This will help prevent accidental increases in bundle size from being pushed to production. Implementing this as part of our PR checks would ensure better control over page performance.

Tasks

  • Measure bundle size on PR
  • Create a rule about it

Acceptance Criteria

  1. PR check that measure bundle size so it can avoid PRs with increased bundle size to pushed to production
  2. New rule is created
@babakamyljanovssw babakamyljanovssw converted this from a draft issue Mar 4, 2025
@babakamyljanovssw babakamyljanovssw changed the title Pipeline - find bundle size 🚀 Pipeline - Measure bundle size on PR Mar 4, 2025
@babakamyljanovssw babakamyljanovssw self-assigned this Mar 5, 2025
@babakamyljanovssw babakamyljanovssw moved this from 🔖 Backlog - Ready to 🏗 In progress in SSW.Website Mar 5, 2025
@babakamyljanovssw babakamyljanovssw linked a pull request Mar 5, 2025 that will close this issue
2 tasks
@babakamyljanovssw
Copy link
Member Author

PR - #3678

I changed docker build to use @next/bundle-analyzer to generate bundle report files. And from actions there is script that calculates size and adds comment to PR.

Image
Figure: Bundle size comment is added to PR after build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

1 participant