An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Format R2 client
Yoshiki Miurae85d98e0f94b
diff --git a/lib/storage/r2-client.ts b/lib/storage/r2-client.tsindex 39d243c1..ce785181 100644--- a/lib/storage/r2-client.ts+++ b/lib/storage/r2-client.ts@@ -80,7 +80,10 @@ function isObjectKeyWithinPrefix(key: string, prefix: string) {const normalizedKey = normalizeObjectKey(key)const normalizedPrefix = normalizeObjectKey(prefix).replace(/\/+$/, '')- return normalizedPrefix.length > 0 && normalizedKey.startsWith(`${normalizedPrefix}/`)+ return (+ normalizedPrefix.length > 0 &&+ normalizedKey.startsWith(`${normalizedPrefix}/`)+ )}export async function getSignedFileUrl(