image icon indicating copy to clipboard operation
image copied to clipboard

Using `@nuxt/image` with `ipx` with a local middleware as endpoint

Open ThornWalli opened this issue 2 years ago • 0 comments

Hello, I have a question.

I want to use a proxy in a middleware (it takes care of adding the request header in the fetch of the resource, it is an async call: token query).

But now I have the problem that I don't know how to define the alias for an endpoint that runs with a random port on generate. I need an alias that addresses the generate port or the possibility to define the generate port.

Currently I get the port in the listen event, but this is too late to configure @nuxt/image with ipx.

Thanks! 🙂

ThornWalli avatar Jun 28 '22 07:06 ThornWalli