nuxt / nuxt/image

Async runtime image options

Open
#792 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Moving from https://github.com/unjs/ipx/issues/76

Certain configs would need an async operation in order to generate configuration for adding custom headers.

  • For image options (app) we can use a nuxt app hook to be used with a nuxt plugin
  • For image provider options (mainly ipx / headers) we need a nitro plugin hook however it needs async plugin support (https://github.com/unjs/nitro/issues/915)

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 reading the linked unjs/ipx issue and the referenced unjs/nitro issue 915, then trace how image options and image provider options are configured in the Nuxt image module. The issue describes Nuxt app hooks for image options and a Nitro plugin hook for provider headers, but names no files, tests, or settled completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
backend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.