Dembe
06/10/2022, 2:39 PMexport async function getStaticProps() {
const { data, error } = await supabaseAdmin.storage
.from("gallery")
.list("categories/sport", {
limit: 100,
offset: 0,
});
return {
props: {
images: data,
},
};
}
in this code in sport folder i have two sub folders, football and golf with images in those subfolder. how could I retrive all the images from each subfolder into categories/sport? so when i go to sport i want to retrive all the images from sports subfolders images if you understand me! 😄Needle
06/10/2022, 2:39 PM