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
Wondering if you may have an idea of how to fix this issue 🤔
I updated my /blog page to use the images from the post itself instead of the default image used. Although it works locally, when I deploy it on Netlify, it goes back to having a default image.
What I want it to do (and does locally):
What I don't want it to do (and does when deploying on Netlify):
What I tried:
I went into node_modules/accessible-astro-components/Card.astro to update the image files there and in src/pages/blog/[...page].astro
I inspected the image and the file doesn't exist when I look for it locally or in a codespace <div class="card__image"><img alt="" src="https://fakeimg.pl/640x360"></div>
The text was updated successfully, but these errors were encountered:
Thanks for submitting the issue 😄 It seems like you might want to be using the img attribute on the Card component to feed your images in there if that's possible? Changing the package in your node_modules might not lead to the desired results, because once you deploy to Netlify it runs an npm install and the changes you made in your local node_modules wont be there on the server 🤔
Here's an example of how I made a quick demo (but you should see if you can use the code to get the images from your posts instead of this array):
Heyo!
Wondering if you may have an idea of how to fix this issue 🤔
I updated my /blog page to use the images from the post itself instead of the default image used. Although it works locally, when I deploy it on Netlify, it goes back to having a default image.
What I want it to do (and does locally):
What I don't want it to do (and does when deploying on Netlify):
What I tried:
I went into
node_modules/accessible-astro-components/Card.astro
to update the image files there and insrc/pages/blog/[...page].astro
src/pages/blog/[...page].astro
is what deploys as https://jennjunod.netlify.app/blog/I inspected the image and the file doesn't exist when I look for it locally or in a codespace
<div class="card__image"><img alt="" src="https://fakeimg.pl/640x360"></div>
The text was updated successfully, but these errors were encountered: