Debug: list all bucket objects
This commit is contained in:
parent
bdd2d3967b
commit
73c3ddb53e
1 changed files with 2 additions and 3 deletions
|
|
@ -33,11 +33,10 @@ export async function GET(req: NextRequest) {
|
|||
const { client, bucket, baseUrl } = getR2();
|
||||
const childId = req.nextUrl.searchParams.get("childId") || "default";
|
||||
|
||||
// List all memories for this child
|
||||
// List ALL objects in bucket (no prefix filtering for debugging)
|
||||
const command = new ListObjectsV2Command({
|
||||
Bucket: bucket,
|
||||
Prefix: `memories/${childId}`,
|
||||
MaxKeys: 50
|
||||
MaxKeys: 100
|
||||
});
|
||||
|
||||
const res = await client.send(command);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue