You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got the same problem but can't reproduce it when using a cloudflare tunnel but on my production server which uses HAProxy/PM2 it doesn't work anymore.
I have a click handler on the images to download them.
pnpm dev --tunnel : images can be downloaded pnpm build && node .output/server/index.mjs and pnpm untun tunnel : images can be downloaded tar cf output.tar .output && scp remotehost && unpack && pm2 start webapp : images can't be download, path to the image doesn't have the /_ipx/_/ part.
Manually adding the /_ipx/_/ part into the url downloads/show the image.
I'm running a Nuxt 3 app in production using PM2 (cluster mode) and Nginx as a reverse proxy. When making internal requests (curl -I http://localhost:3000/_ipx/_/logo/my-image.png), the image loads fine. However, when accessing externally (https://app.xyz.com/_ipx/_/logo/my-image.png), I get a 404 Not Found error.
This issue occurs only in production on external requests. But on internal request no issues. In development (npm run dev), images work fine.
Steps to Reproduce:
Start a Nuxt app with @nuxt/image using pm2 in cluster mode:
pm2 start ecosystem.config.js
Set up Nginx as a reverse proxy:
`server {
listen 80;
server_name app.xyz.com;
Try accessing the image:
Works locally:
curl -I http://localhost:3000/_ipx/_/logo/my-image.png
Fails externally:
curl -I https://app.xyz.com/_ipx/_/logo/my-image.png
The text was updated successfully, but these errors were encountered: