Skip to content

Commit

Permalink
fix: filebase image optimization error
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Nov 23, 2023
1 parent 6166754 commit 6a3fe74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ui/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "")
}
Expand Down

0 comments on commit 6a3fe74

Please sign in to comment.