Analyzes each PR's impact on your next.js app's bundle size and displays it using a comment. Optionally supports performance budgets.
NOTE: Due to github actions' lack of support for more complex actions, the experience of getting this set up is unusual in that it requires a generation script which copies most of the logic into your project directly. As soon as github adds support for the features needed to properly package up this action, we'll put out an update that removes the extra boilerplate and makes usage much simpler. Until then, we all have no choice but to endure this unusual setup process.
$ npx nextjs-bundle-analysis generate