Replies: 2 comments
-
Same problem here. I am using Firebase Hosting |
Beta Was this translation helpful? Give feedback.
-
Resizing happens at runtime. Nuxt/Image Configuration - dir has a note for this: "For some providers (like vercel), using a directory other than public/ for assets is not supported since resizing happens at runtime (instead of build/generate time) and source fetched from the public/ directory (deployment URL)" This is working in dev mode because the assets folder does exist in your local environment but not in your built. If the images in question belong to static pages you could go hybrid and prerender this pages during your build. If the images in question belong to dynamic pages you might want to check this as well Static Images |
Beta Was this translation helpful? Give feedback.
-
Hi,
i try to understand the build process for a project with nuxt image.
I have put my images in /assets/images
In dev mode everything works perfectly fine but when build the project with npm run build the images in /assets/images are not processed and the images are missing in the production build.
So my question is how do i have to configure the build process to also process images during build?
I can't find any helpful documentation regarding this.
Beta Was this translation helpful? Give feedback.
All reactions