Images not being displayed/loaded in production environment #510
Replies: 2 comments
-
Replace Something similar to what we have in For now, always use |
Beta Was this translation helpful? Give feedback.
-
Hi @prototypa I've tried doing this, with no luck. I'm also aware that local files need to be imported into I've attached HeroSplash.astro below. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Trying to push custom images that are located in /src/assets/images. These images will load perfectly fine during testing using
npm run dev
, but not in my final build.FYI I'm pushing using a cloudflare page. Site is deployed static.
Live Site
I've linked an example page (about.astro) where the image in the HeroSplash segment won't load it's splash background image during deployment to cloudflare.
Package.json and navigation.js (attached as txt) as well.
FYI I'm pushing using a cloudflare page. Page is currently set to static.
I've linked an example page (about.astro) where the image in the HeroSplash segment won't load it's splash background image during deployment to cloudflare.
Package.json and navigation.js (attached as txt) as well.
about.txt
package.json
navigation.txt
Beta Was this translation helpful? Give feedback.
All reactions