Skip to content
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

"@nuxt/image-edge": "^1.0.0-27840416.dc1ed65". still doesn't support static images #690

Closed
jpengelbrecht opened this issue Dec 19, 2022 · 8 comments

Comments

@jpengelbrecht
Copy link

i find that using. as Nuxt3 prefers you actually use the assets folder to host your images.
export default defineNuxtConfig({ image: { dir: "assets/images", }, })

then using
<NuxtImg class="desktop" src="/website/home/above-fold-illustration.png" alt="illustration" aria-hidden="true" />

doesn't work when deploying static site. it works on running it on the dev server, but breaks on the statically built version

"@nuxt/image-edge": "^1.0.0-27840416.dc1ed65",

@desenvolvimento02jocc
Copy link

desenvolvimento02jocc commented Dec 19, 2022

Same here.

Refer to #689

@alexiokay
Copy link

I'am still waiting for fix xD

@aleavikraman
Copy link

running into the same issue

@Intevel
Copy link

Intevel commented Jan 11, 2023

Same issue for me!

@pi0
Copy link
Member

pi0 commented Jan 27, 2023

Hi. You should put images to public/images directory. assets is a convention for Nuxt to build build time assets that get bundled with vite/webpack while image assets are runtime required.

Please let me know if still having issues after moving to public.

@pi0 pi0 closed this as completed Jan 27, 2023
@ibrahim-990
Copy link

i do this but not work with me

export default defineNuxtConfig({
modules: [
'@nuxt/image-edge',
],
image: {
dir: "public/",
},,
})

@ibrahim-990
Copy link

the images shown in mode run nuxt dev but when run nuxt generate the images not shown

@ibrahim-990
Copy link

and in package.json file
this
"dependencies": {
"@nuxt/image-edge": "^1.0.0-27919678.2f5b64b",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants