improve SEO on UGC, proxy S3
This commit is contained in:
parent
6e4e8a4eaa
commit
107c78a5f2
13 changed files with 149 additions and 34 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Reference in a new issue