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

Astro Image component @astrojs/image does not work on Netlify using SSR #8157

Closed
1 task
gregorysirtoli opened this issue Aug 19, 2023 · 1 comment
Closed
1 task
Labels
needs triage Issue needs to be triaged

Comments

@gregorysirtoli
Copy link

What version of astro are you using?

2.10.12

Are you using an SSR adapter? If so, which one?

Netlify

What package manager are you using?

npm

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the Bug

The image component does not render images correctly in Production on Netlify using the @astrojs/netlify adapter. Everything works fine in dev mode but once deployed to Netlify the image endpoint fails to generate and return images, instead it throws the following error:

The image "URL" cannot be displayed because it contains errors.

Same error #4794

What's the expected result?

It simply should render the images useing @astro/image

Link to Minimal Reproducible Example

https://github.com/lgastler/astro-image-ssr-reproduction

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Aug 19, 2023
@withastro withastro deleted a comment from ARed99 Aug 22, 2023
@natemoo-re
Copy link
Member

I can confirm that I'm getting 500 / 502 errors with the original @astrojs/image repro.

Here's a working repro using astro:assets which has replaced the deprecated @astrojs/image. I unfortunately don't think that we'll be able to backport any fixes to @astrojs/image given that the recommended solution (astro:assets) is working as expected and @astrojs/image is about to be officially sunset once #8188 is merged.

@natemoo-re natemoo-re closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants