diff --git a/pages/index.js b/pages/index.js index 097d538..ff5dd18 100644 --- a/pages/index.js +++ b/pages/index.js @@ -74,7 +74,7 @@ export async function getStaticProps() { const minioObjects = await new Promise((resolve, reject) => { const data = []; - const stream = mc.listObjectsV2(minioBucket, "", true, ""); + const stream = mc.listObjectsV2(minioBucket, "photos", true, ""); stream.on("data", (obj) => data.push(obj.name)); stream.on("error", reject);