From 9ba4dae579a87b88da6d21dab5377a3f6f0dc1da Mon Sep 17 00:00:00 2001 From: zainuldeen <78583049+Zain-ul-din@users.noreply.github.com> Date: Wed, 20 Mar 2024 06:18:03 +0500 Subject: [PATCH] removed: ISR --- src/pages/freeclassrooms/index.tsx | 3 +-- src/pages/timetable/[id].tsx | 3 +-- src/pages/timetable/rooms/[id].tsx | 3 +-- src/pages/timetable/teachers/[id].tsx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pages/freeclassrooms/index.tsx b/src/pages/freeclassrooms/index.tsx index f577ab5..c3f2911 100644 --- a/src/pages/freeclassrooms/index.tsx +++ b/src/pages/freeclassrooms/index.tsx @@ -25,8 +25,7 @@ export async function getStaticProps(context: GetStaticPropsContext) { return { props: { - timetables, - revalidate: 60 + timetables } }; } diff --git a/src/pages/timetable/[id].tsx b/src/pages/timetable/[id].tsx index b8d3939..c43ae49 100644 --- a/src/pages/timetable/[id].tsx +++ b/src/pages/timetable/[id].tsx @@ -40,8 +40,7 @@ export async function getStaticProps(context: GetStaticPropsContext) { return { props: { timetable: { id: timetable.uid, ...timetable } - }, - revalidate: 10 + } }; } diff --git a/src/pages/timetable/rooms/[id].tsx b/src/pages/timetable/rooms/[id].tsx index 19fb138..5a4a5bb 100644 --- a/src/pages/timetable/rooms/[id].tsx +++ b/src/pages/timetable/rooms/[id].tsx @@ -39,8 +39,7 @@ export async function getStaticProps(context: GetStaticPropsContext) { return { props: { timetable: { id: timetable.uid, room: timetable.uid, ...timetable } - }, - revalidate: 30 + } }; } diff --git a/src/pages/timetable/teachers/[id].tsx b/src/pages/timetable/teachers/[id].tsx index b2968a9..583d89a 100644 --- a/src/pages/timetable/teachers/[id].tsx +++ b/src/pages/timetable/teachers/[id].tsx @@ -39,8 +39,7 @@ export async function getStaticProps(context: GetStaticPropsContext) { return { props: { timetable: { id: timetable.uid, ...timetable } - }, - revalidate: 5 + } }; }