refactor: migrate to webp
This commit is contained in:
parent
0745ac07dd
commit
973553b0e9
|
|
@ -9,7 +9,7 @@ export const getImageProxyUrl = ({
|
|||
url: string
|
||||
width: number
|
||||
height: number
|
||||
}) => `${env.VITE_IMGPROXY_URL}/unsafe/fit-in/${width}x${height}/${encodeURIComponent(url)}`
|
||||
}) => `${env.VITE_IMGPROXY_URL}?url=${encodeURIComponent(url)}&width=${width}&height=${height}`
|
||||
|
||||
export const replaceImgUrlIfNeed = (url: string) => {
|
||||
for (const rule of imageRefererMatches) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue