From 6a3fe74f8bb3d85e1f4bea76e90ccfd3a1658a9f Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 23 Nov 2023 20:13:49 +0800 Subject: [PATCH] fix: filebase image optimization error --- src/components/ui/Image.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ui/Image.tsx b/src/components/ui/Image.tsx index 77a82b24..1f64cef6 100644 --- a/src/components/ui/Image.tsx +++ b/src/components/ui/Image.tsx @@ -161,6 +161,7 @@ export const Image = ({ const urlObj = new URL(src) urlObj.searchParams.set("img-quality", (quality || 75) + "") urlObj.searchParams.set("img-format", "auto") + urlObj.searchParams.set("img-onerror", "redirect") if (width) { urlObj.searchParams.set("img-width", width + "") }