nuxt / nuxt/image

[ipx] allow _mock_ extension suffix

Open
#726 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

When generating image URLs for IPX, the format is usually like /_ipx/f_webp/path/to/image/with/original.ext. While this is totally fine by browsers to use the right mime type and format, it can be confusing (reported many times before by users) and also harder for reverse proxies to determine mime based on path. We can make it better by adding ?.webp (actual format) to the end of IPX generated URLs, however it fixes issues for runtime links, for prerendering, it is impossible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing IPX-generated URL handling in the repository, comparing runtime links with prerendered output described in the issue. Done means generated URLs can expose the actual format with a ?.webp-style suffix where supported, while preserving correct prerendering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, performance
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.