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

[Vercel] Image Sizing Broken #1455

Open
jaketig opened this issue Aug 29, 2024 · 1 comment
Open

[Vercel] Image Sizing Broken #1455

jaketig opened this issue Aug 29, 2024 · 1 comment

Comments

@jaketig
Copy link

jaketig commented Aug 29, 2024

index.vue:

<NuxtImg src="/img/logo.png" height="130" alt="Bee Line Parks" />

1.7.1 on Vercel in Production:

Generated HTML:

<img onerror="this.setAttribute('data-error', 1)" data-v-a22f9b78="" src="/_vercel/image?url=%2Fimg%2Flogo.png&amp;w=2560&amp;q=100">

Screenshot:
image

vs 1.7.0 on Vercel in Production

Generated HTML:

<img onerror="this.setAttribute('data-error', 1)" height="130" alt="Bee Line Parks" data-nuxt-img="" srcset="/_vercel/image?url=%2Fimg%2Flogo.png&amp;w=2560&amp;q=100 1x, /_vercel/image?url=%2Fimg%2Flogo.png&amp;w=2560&amp;q=100 2x" class="" src="/_vercel/image?url=%2Fimg%2Flogo.png&amp;w=2560&amp;q=100" data-v-a22f9b78="">

Screenshot:
image

@tomsdob
Copy link

tomsdob commented Aug 29, 2024

Facing the same issue, as you can see in your code, the alt attribute is also not generated.

Edit: #1445 fixes this.

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

2 participants