You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue where astro/Image's and tags are working with a local file path but not on production. I have read the documentation and looked at the following similar issues:
The Images appear locally with npm run dev but the images don't render with npm run preview. Looking in /dist it seems that there is a suffix added to resized images with the <Image> integration. For some reason these don't appear in my output directory.
ie.
The original file appears in /dist like so: /assets/van3.742ef038.jpg
But the compressed and resized file /assets/van3.742ef038_Z2rGreV.jpg does not appear.
I'm not sure if this is a bug or an environment issue on my end.
What version of
astro
are you using?1.6.7
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
Describe the Bug
I am having an issue where astro/Image's and tags are working with a local file path but not on production. I have read the documentation and looked at the following similar issues:
#5008
#772
I've tried a lot of different import() path permutations and have attempted to use local files in /src and remote files in /public.
I have been trying to get images to work in this file in my repo
https://github.com/donaldjewkes/site/blob/master/src/pages/photos.astro
The Images appear locally with
npm run dev
but the images don't render withnpm run preview
. Looking in/dist
it seems that there is a suffix added to resized images with the<Image>
integration. For some reason these don't appear in my output directory.ie.
The original file appears in
/dist
like so:/assets/van3.742ef038.jpg
But the compressed and resized file
/assets/van3.742ef038_Z2rGreV.jpg
does not appear.I'm not sure if this is a bug or an environment issue on my end.
Thanks for any help.
Link to Minimal Reproducible Example
https://github.com/donaldjewkes/site
Deployed version here: https://master--jovial-cranachan-094642.netlify.app/photos/
Participation
The text was updated successfully, but these errors were encountered: