-
Notifications
You must be signed in to change notification settings - Fork 274
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
images return 404 when using nuxt generate
+ vercel preset
#638
Comments
I believe this may be another one related to the WIP on static generation #614 |
Anybody found a temporary fix to this yet? |
I didn't, so I just migrated my whole project to Nuxt2. |
I believe I am seeing this issue too. It works fine when I do
|
same error for me, even after the #614 update |
Just started using this package and swapped out all my images, and is broken for me too. Using Nuxt v2 and nuxt-image v0.7.1, but it works fine on localhost dev/build |
This is also the case for me when using |
hello i clone your projet and in nuxt config i add the path like this image: { staticFilename: '[publicPath]/[name]-[hash][ext]' }
Is work for me |
@Teo3tc I tried doing that. My image paths on Netlify are still broken. |
Even after the nuxt-img@edge update 1.0.0-27954023.4cee565 it still remains broken. After downloading my rendered project from Netlify, none of the public/_ipx images are even there. Something's a miss. |
Now working config yet for me with Netlify provider whereas works locally. |
same problems some files return 404 |
nuxt generate
+ vercel preset
I have been following the vercel-static Nitro preset discussion and just gave that new preset a shot. I'm unable to get images working in a static build on Vercel. I've made a minimal reproduction. Repo: https://github.com/mplno/nuxt-vercel-image-example My steps to init this repo: npx nuxi init nuxt-vercel-image-example
cd nuxt-vercel-image-example
yarn add --dev @nuxt/image-edge I have the Vercel project build step overwritten to Have I made an error in setting up a vercel-static project? If not, I'm happy to help debug further. |
Just to chime in. We have the same issue hosting it via NGINX and NGINX Ingress via K8s. Turns out when you build the NUXT project, the static folder was not transferred, so we got 404s, but the output on our deployed instances did not have anything as NUXT does not package static during it's build process. After that was fixed, no more 404s and everything started working. |
how did you fix this TheoParkos ? |
Using nuxt-img with local images and they dont seem to work when the pages are prerendered. They throw a 404 error.
The images are displayed locally in dev environment.
Reproduction - https://github.com/fayazara/nuxt-image-issue-reproduction
Deployed on Vercel - https://nuxt-image-issue-reproduction.vercel.app/
Deployed on Netlify - https://wondrous-medovik-574c06.netlify.app/
A remote image URL work btw. Happens only with local static images.
Build command was set to
yarn generate
The text was updated successfully, but these errors were encountered: