mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-17 10:28:46 -04:00
manually minify JS outputted by next-mdx-remote v4
This commit is contained in:
@@ -4,7 +4,17 @@ import type { ImageProps as NextImageProps } from "next/image";
|
||||
|
||||
import styles from "./Image.module.css";
|
||||
|
||||
const Image = ({ src, width, height, placeholder, alt, quality, priority, className, ...rest }: NextImageProps) => {
|
||||
const CustomImage = ({
|
||||
src,
|
||||
width,
|
||||
height,
|
||||
placeholder,
|
||||
alt,
|
||||
quality,
|
||||
priority,
|
||||
className,
|
||||
...rest
|
||||
}: NextImageProps) => {
|
||||
// passed directly into next/image: https://nextjs.org/docs/api-reference/next/image
|
||||
const imageProps: Partial<NextImageProps> = {
|
||||
width,
|
||||
@@ -36,4 +46,4 @@ const Image = ({ src, width, height, placeholder, alt, quality, priority, classN
|
||||
);
|
||||
};
|
||||
|
||||
export default Image;
|
||||
export default CustomImage;
|
||||
|
||||
Reference in New Issue
Block a user