Remove unoptomized tag on image

This commit is contained in:
Lee 2022-11-17 09:58:33 +00:00
parent c95a40fec4
commit f1ee2bb11b
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -95,13 +95,7 @@ export default function File({ isValidFile, fileData }) {
if (isValidFile) {
if (isImage) {
toShow = (
<Image
alt={fileId}
src={fileUrl}
width={width}
height={height}
unoptimized
></Image>
<Image alt={fileId} src={fileUrl} width={width} height={height}></Image>
);
}
if (isVideo) {
@ -156,5 +150,6 @@ export async function getStaticProps({ params }) {
isValidFile: file !== null,
fileData: JSON.stringify(file || []),
},
revalidate: 300, // 5 minutes
};
}