From f1ee2bb11b02ff2c263e19e46abf52de22cc3978 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 17 Nov 2022 09:58:33 +0000 Subject: [PATCH] Remove unoptomized tag on image --- src/pages/files/[fileId].js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pages/files/[fileId].js b/src/pages/files/[fileId].js index fee978c..deb04a3 100644 --- a/src/pages/files/[fileId].js +++ b/src/pages/files/[fileId].js @@ -95,13 +95,7 @@ export default function File({ isValidFile, fileData }) { if (isValidFile) { if (isImage) { toShow = ( - {fileId} + {fileId} ); } if (isVideo) { @@ -156,5 +150,6 @@ export async function getStaticProps({ params }) { isValidFile: file !== null, fileData: JSON.stringify(file || []), }, + revalidate: 300, // 5 minutes }; }