feat: use photos as prefix

This commit is contained in:
rizaldy 2024-02-01 01:56:38 +07:00
parent 2f6a7688e9
commit f995b0e234

View File

@ -74,7 +74,7 @@ export async function getStaticProps() {
const minioObjects = await new Promise((resolve, reject) => { const minioObjects = await new Promise((resolve, reject) => {
const data = []; 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("data", (obj) => data.push(obj.name));
stream.on("error", reject); stream.on("error", reject);