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

Improved Image optimization for vercel usage #1822

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kshitijdomadia
Copy link

@kshitijdomadia kshitijdomadia commented Jul 31, 2024

Vercel only allows 1000 images a month for image optimization for the hobby plan.

This merge removes the call made for each profile image that vercel recognized as a "unique" image which subsequently (and significantly) racks up vercels image optimization usage. In a nutshell:

  • Removed timestamp from profile image src (that leads to vercel believing that every image src call is unique)
  • Added remote patterns for image optimization + flag to turn optimization on/off globally

Reference

image

not sure why this was added in the first place, it performs horribly with vercels image optimization usage due to every call being a unique image path.
added remote patterns for image optimization + flag to turn optimization on/off globally
added remote patterns for image optimization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant