#image is not showed in production deployment
1 messages · Page 1 of 1 (latest)
Hi @dawn phoenix. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
There are several issues reported on Astro's GitHub page that might be related to your problem.
-
Issue #10339 (https://github.com/withastro/astro/issues/10339) discusses a problem with deploying to Cloudflare Pages. The user was able to build the project successfully, but encountered an error when uploading. The issue seems to be related to the Cloudflare adapter.
-
Issue #772 (https://github.com/withastro/astro/issues/772) reports a bug where image imports work in development but not in production. The user found that
astro builddoesn't copy the asset to thedist/folder. -
Issue #2019 (https://github.com/withastro/astro/issues/2019) describes a problem where
<img>tags display no image on production sites when usingvite-imagetools. The paths produced byvite-imagetoolsaren't valid paths, and there's no file present with this name in the/distdirectory. -
Issue #4536 (https://github.com/withastro/astro/issues/4536) reports that the Astro Image component doesn't work in production when deployed on Vercel.
-
Issue #5389 (https://github.com/withastro/astro/issues/5389) and Issue #7891 (https://github.com/withastro/astro/issues/7891) also report similar issues where images work locally but not on production.
-
Issue #2068 (https://github.com/withastro/astro/issues/2068) reports a bug where importing images & assets is broken in production builds. The import statement imports a string containing the path from the root of the project to the source image, but the image does not get copied to
distat all.