Skip to content

Problem store.from('example').list() #253

@Fabian-Martinez-Rincon

Description

@Fabian-Martinez-Rincon

the following code works

export async function getStaticProps() {
  const { data } = await supabaseAdmin.storage.listBuckets()
  return {
    props: {
      images: data
    }
  };
}

export default function Gallery( images : any ) {
  console.log(images)
  return (
    <h1>hello
    </h1>
  );
}

image

but this returns me an empty list

export async function getStaticProps() {

  //const { data } = await supabaseAdmin.storage.listBuckets()

  const { data } = await supabaseAdmin.storage.from('allimages').list()
  return {
    props: {
      images: data
    }
  };
}

export default function Gallery( images : any ) {
  console.log(images)
  return (
    <h1>hello
    </h1>
  );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions