Open senher opened 5 months ago
@senher Is it Netlify? I'm having issues today too.
Anyone else having issues with images not loading on Netlify? I'm using the same image transformation service that I've been using for a while now and it's not working anymore. I'm not sure if it's related to the changes that were made to the image transformation or redirects on Netlify's side.
The only difference is the slash after the domain name which you would expect to be the working image.
@senher Is it Netlify? I'm having issues today too. 是网络化吗?我今天也遇到问题了
No, I tested it locally and deployed it to a test server,
any progress on this issue so far, I'm experiencing the same problem
any progress on this issue so far, I'm experiencing the same problem
For Netlify you need to add the domain to the netlify.toml file like below:
[images]
remote_images = ["https://example.com/.*"]
Thanks, unfortunately I'm not using Netlify. when setting up image.dir I noticed that the corresponding image resource doesn't exist in the .output folder, it looks like a very simple problem, I think maybe I underconfigured some options but I don't know much about nuxt!
I put my image resources in the resources/images directory My nuxt.config.ts:
modules: ["@nuxt/image"], image: { dir: "resources", },
in page:<NuxtImg src="/images/test.jpg" />
It will render<img src="/_ipx/_/images/test.jpg"/>
It works fine in development mode and the images can be accessed After npm runs build, the image will display 404 in production mode"@nuxt/image": "^1.5.0",
"nuxt": "^3.11.2",