mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-10 07:26:55 +02:00
17 lines
465 B
TypeScript
17 lines
465 B
TypeScript
// THIS FIXES A BUG WITH NEXT IMAGE
|
|
// SEE: https://github.com/vercel/next.js/issues/33488
|
|
// FIX: https://github.com/vercel/next.js/issues/33488#issuecomment-1879127189
|
|
|
|
import NextImage from "next/image";
|
|
|
|
const Image = ({...props }: any) => {
|
|
const imageLoader = ({src, width, quality}: any) => {
|
|
return `${src}?w=${width}&q=${quality || 75}`
|
|
}
|
|
|
|
return (
|
|
<NextImage loader={imageLoader} {...props} />
|
|
)
|
|
}
|
|
|
|
export default Image; |