From f995b0e23481366132aaa00037046c7c71c662be Mon Sep 17 00:00:00 2001 From: rizaldy Date: Thu, 1 Feb 2024 01:56:38 +0700 Subject: [PATCH] feat: use photos as prefix --- pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);