Skip to content

Commit

Permalink
chore: test without unoptimized images next config
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Sep 3, 2023
1 parent 7bfb204 commit 414481f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
12 changes: 1 addition & 11 deletions components/NextImage.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import Image from "next/image";
import { imageLoader } from "./loader";

const NextImage = ({ src, alt, width, height }) => {
return (
<Image
loader={imageLoader}
src={src}
alt={alt}
width={width}
height={height}
unoptimized
/>
);
return <Image src={src} alt={alt} width={width} height={height} />;
};

export default NextImage;
10 changes: 5 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module.exports = {
return `${new Date().getTime()}`;
}
},
images: {
unoptimized: true,
loader: "custom",
loaderFile: "./components/loader.js",
},
// images: {
// unoptimized: true,
// loader: "custom",
// loaderFile: "./components/loader.js",
// },
};

0 comments on commit 414481f

Please sign in to comment.