Skip to content

chore: improve image optimization #177

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

styfle
Copy link
Contributor

@styfle styfle commented Mar 13, 2025

This PR follows some of the patterns outlined in the documentation here:

https://vercel.com/docs/image-optimization/managing-image-optimization-costs

  1. Set minimumCacheTTL to 31 days since these images are not changing frequently
  2. Use static import for local image to automatically get correct cache-control headers
  3. Strict remotePatterns to exclude query strings when we know they're not needed
  4. Set unoptimized: true for animated images since these are not optimized anyway

Copy link

vercel bot commented Mar 13, 2025

@styfle is attempting to deploy a commit to the Guillermo Rauch Team on Vercel.

A member of the Team first needs to authorize it.

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