1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-17 09:28:43 -04:00

manually minify JS outputted by next-mdx-remote v4

This commit is contained in:
2022-01-24 10:41:31 -05:00
parent 51ecae3c9b
commit e5b862508c
5 changed files with 69 additions and 21 deletions

View File

@@ -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;