Remove unoptomized tag on image
This commit is contained in:
parent
c95a40fec4
commit
f1ee2bb11b
@ -95,13 +95,7 @@ export default function File({ isValidFile, fileData }) {
|
|||||||
if (isValidFile) {
|
if (isValidFile) {
|
||||||
if (isImage) {
|
if (isImage) {
|
||||||
toShow = (
|
toShow = (
|
||||||
<Image
|
<Image alt={fileId} src={fileUrl} width={width} height={height}></Image>
|
||||||
alt={fileId}
|
|
||||||
src={fileUrl}
|
|
||||||
width={width}
|
|
||||||
height={height}
|
|
||||||
unoptimized
|
|
||||||
></Image>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (isVideo) {
|
if (isVideo) {
|
||||||
@ -156,5 +150,6 @@ export async function getStaticProps({ params }) {
|
|||||||
isValidFile: file !== null,
|
isValidFile: file !== null,
|
||||||
fileData: JSON.stringify(file || []),
|
fileData: JSON.stringify(file || []),
|
||||||
},
|
},
|
||||||
|
revalidate: 300, // 5 minutes
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user