commercejs-nextjs-demo-store
commercejs-nextjs-demo-store copied to clipboard
Categories images not loading
Hi, looking to get my own images working in the CategoryBanner, nothing works despite reading the instructions.
My collection.js look like this :
export default [
{
image: '/images/collection/1.png',
slug: 'salle-de-bain',
link: '/collection#salle-de-bain',
translateRatio: 30,
count: 3
},
{
image: '/images/collection/2.png',
slug: 'cuisine',
link: '/collection#cuisine',
translateRatio: 0,
count: 3
},
{
image: '/images/collection/3.png',
slug: 'mode',
link: '/collection#mode',
translateRatio: 60,
count: 2
}
];
I double checked the spelling and path but everything seems ok. Maybe I'm doing this wrong. Categories are also set in the Chec dashboard:

inside CategoryBanner.js exactly under the Link, change item.meta.image to item.assets[0].url