Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get ipx working with routeRules proxy #1243

Open
matty-red opened this issue Feb 8, 2024 · 1 comment
Open

How to get ipx working with routeRules proxy #1243

matty-red opened this issue Feb 8, 2024 · 1 comment

Comments

@matty-red
Copy link

I have a routeRules setup to proxy /storage requests to an api.

routeRules: {
    '/_storage/**': { proxy: 'https://localhost:3050/_storage/**' },
  },

When referencing the image, using nuxt-picture and ipx I get an image cannot be found error.

<nuxt-picture
   src="/_storage/public/test3.png"
/>

IPX path

/_ipx/w_3072&f_png/_storage/public/test3.png

IPX response

{
  "error": {
    "message": "[404] [IPX_FILE_NOT_FOUND] File not found: /_storage/public/test3.png"
  }
}

How would I go about supporting this?

@ploca14
Copy link

ploca14 commented Feb 15, 2024

Also interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants