Skip to content

nuxt generate Does Not Generate Transformed Images When Deployed On Vercel #757

@piet-maier

Description

@piet-maier

I am hosting my Nuxt project on Vercel, and using nuxt generate to create a static build. This works as expected on my machine, but on the Vercel deployment, no images are generated. The original files are available under their respective URL, but any transformed versions, which should be generated by the image module and available under a URL like /_vercel/image?url=/images/example.jpg&w=1280&q=100 simply do not exist.

I searched online for this problem, but the only thing I found was this issue from 2021, which describes - as far as I can tell - the same problem, but with Nuxt 2 and Nuxt Image < 1.0, which does not help me very much.

I have a completely empty image configuration and no route specific rendering rules. Using nuxt build works perfectly fine, and - as I said - nuxt generate does work on my machine. It just does not work when deployed on Vercel.

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