Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

feat(ipx): use alternate URL style with format as file extension#1793

Draft
sgarner wants to merge 4 commits intonuxt:main from
sgarner:feat/format-extension
Draft

feat(ipx): use alternate URL style with format as file extension #1793
sgarner wants to merge 4 commits intonuxt:main from
sgarner:feat/format-extension

Conversation

@sgarner
Copy link

@sgarner sgarner commented Apr 4, 2025

🔗 Linked issue

Resolves #933, #584, #442

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Implements (and depends on) the alternate URL style for IPX proposed in unjs/ipx#259

This improves prerendering of images so that the target format is respected in the generated filename, fixing issues with static hosting. For full rationale please see the description in unjs/ipx#259

The original URL style will still be used when the requested format is auto (which is not applicable for prerendering anyway), or when no modifiers are given. Otherwise the new URL style will be used.

I'm not sure whether this needs to be classed as a breaking change. It will cause different URLs to be produced with ipx and ipxStatic providers, but that shouldn't break anything unless users are somehow relying on the old URL style.

PikaDude reacted with heart emoji
@sgarner sgarner marked this pull request as draft April 4, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@danielroe danielroe Awaiting requested review from danielroe danielroe is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

doesn't generate other formats on "nuxt generate"

1 participant

AltStyle によって変換されたページ (->オリジナル) /