enhance: fallback option for media proxy
This commit is contained in:
parent
2a86942f07
commit
6d46e5cf77
2 changed files with 19 additions and 1 deletions
|
|
@ -4,7 +4,8 @@ import { url } from '@/config';
|
|||
export function getProxiedImageUrl(imageUrl: string, type?: 'preview'): string {
|
||||
return `${url}/proxy/image.webp?${query({
|
||||
url: imageUrl,
|
||||
...(type ? { [type]: "1" } : {}),
|
||||
fallback: '1',
|
||||
...(type ? { [type]: '1' } : {}),
|
||||
})}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue