Skip to content

images return 404 when using nuxt generate + vercel preset #638

@fayazara

Description

@fayazara

Using nuxt-img with local images and they dont seem to work when the pages are prerendered. They throw a 404 error.
Screenshot2022-10-29 at 21 23 51@2x

The images are displayed locally in dev environment.
image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions