-
Notifications
You must be signed in to change notification settings - Fork 272
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
image.dir Does not work in production #1320
Comments
@senher Is it Netlify? I'm having issues today too. |
Images are still not working.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. Working imageBroken image.The only difference is the slash after the domain name which you would expect to be the working image. |
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 |
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. |
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",
The text was updated successfully, but these errors were encountered: