strapi / nextjs-corporate-starter

Strapi Demo application for Corporate Websites using Next.js
MIT License
955 stars 285 forks source link

The Application does not load an image in the background #94

Closed edergermanio1980 closed 6 months ago

edergermanio1980 commented 8 months ago

The Application does not load an image in the background of the hero section, I used the extend backgroundImage from the tailwind.config.js file to load the image, but the image does not load

image image image
PaulBratslavsky commented 8 months ago

I don't think the error you are showing is the same error for not loading images. Can you console log page.data[0] to see what you are getting.

In any case if something is missing it should fall back to FALLBACK_SEO, maybe changing it to the following will fix the original error.

  if (!page.data[0]?.attributes?.seo;

Let me know if that helps or if you get another error.

PaulBratslavsky commented 6 months ago

Closing due to "no recent activities"