improve SEO on UGC, proxy S3

This commit is contained in:
Face 2025-06-28 17:31:05 +03:00
parent 6e4e8a4eaa
commit 107c78a5f2
13 changed files with 149 additions and 34 deletions

View file

@ -31,7 +31,7 @@ export function getTimeBasedGreeting(name: string): string {
export function getPublicUrl(key: string | null): string | null {
if (!key) return null;
return `${PUBLIC_B2_ENDPOINT}/${PUBLIC_B2_BUCKET}/${key}`;
return `/api/proxy/s3/${key}`;
}
export function debounce(func: (...args: any[]) => void, wait: number) {