Hi Amy, thank you for your feedback. Firstly, this isn't an issue with my code, but rather the usage reporting screen on vercel.com. I believe this is a frontend bug with Vercel's website. I was able to create a minimal reproducible example, with a video to follow along with what happens.
Here is the github repo for the minimal reproducible example I made.
I've created a short video where I screen record what happened, please take a look.
Here's the steps I took, and how to recreate the error:
- Created a blank github/vercel project based on the next.js template.
- Added a single image so that Vercel would count a single image optimization.
- After the site was built, I went to my usage. I specifically went to the image optimization section.
- Here's where I noticed the bug - when hovering over the bar chart, the number of image optimizations started increasing without end. Also, chrome started heavily using my CPU resources, and stopped using CPU resources when I closed the tab.
I'm a junior developer interested in making open source contributions. I know vercel has a github page, but I am not sure if the web dashboard is open-source or not. If it is, I'd love to try investigating this bug.