image
image copied to clipboard
IPX not working on Netlify (500 error)
Hello 👋,
I remarked that IPX provider wasn't working when I was publishing on Netlify. I don't have this problem when running the built app with nuxt preview command
Error log :

cc @pi0
I have the same issue :/
Same issue, any fix?
same issue
Same issue with @nuxt/image-edge. It used to work before I updated it.
Same issue
+1
here is a temporary fix, add a reverse proxy block in NGINX.
location /_ipx/_/ { rewrite /_ipx/_/(.*) /$1 break; proxy_pass http://127.0.0.1:4002/$1; }
where in i am running the nuxt config in port 4002.
here is a complete config.
`server { listen 3999; listen [::]:3999; try_files $uri /index.html; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4002; proxy_redirect off; }
location /ipx// { rewrite /ipx//(.*) /$1 break; proxy_pass http://127.0.0.1:4002/$1; }
}`
I think netlify seperates the built server folder and the public folder which goes to a cdn. Therefor it does not have access to the public folder and can't work. I think you should move to one of the cloud providers like cloudinary or wigix.
I had same issue but on my custom server and I solved it by changing node version from 12 to 16 in my case.
Same issue with generate on netlify
I think netlify seperates the built server folder and the public folder which goes to a cdn. Therefor it does not have access to the public folder and can't work. I think you should move to one of the cloud providers like cloudinary or wigix.
Finally a good explanation.
@danielroe Is it possible to fix it on the next release?