Skip to content

Images are served unoptimized via the legacy images.domains config #73

Description

@duxi90

next.config.mjs:

images: {
  domains: ["secure.meetupstatic.com", "images.cppserbia.org"],
  unoptimized: true,
},

Two problems:

  • domains is deprecated in favour of remotePatterns.
  • unoptimized: true makes every next/image a plain <img> at full source resolution.

The cost just went up: speaker portraits are 750×750 PNGs (scripts/upload-speaker-avatar.ts, AVATAR_SIZE = 750) rendered into a 72px slot on the event page, and a 56px slot on panels. That is on top of the full-size event banners already used as hero backgrounds.

Fix

Move to remotePatterns, drop unoptimized, and confirm the Vercel image optimizer is happy with the R2 origin at images.cppserbia.org. Check the OG image route (opengraph-image.tsx) separately — it runs under Satori and deliberately uses a raw <img>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions