Skip to content

Commit

Permalink
removed: ISR
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Mar 20, 2024
1 parent 3b731b0 commit 9ba4dae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/pages/freeclassrooms/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {

return {
props: {
timetables,
revalidate: 60
timetables
}
};
}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/timetable/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
return {
props: {
timetable: { id: timetable.uid, ...timetable }
},
revalidate: 10
}
};
}

Expand Down
3 changes: 1 addition & 2 deletions src/pages/timetable/rooms/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
return {
props: {
timetable: { id: timetable.uid, room: timetable.uid, ...timetable }
},
revalidate: 30
}
};
}

Expand Down
3 changes: 1 addition & 2 deletions src/pages/timetable/teachers/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
return {
props: {
timetable: { id: timetable.uid, ...timetable }
},
revalidate: 5
}
};
}

Expand Down

0 comments on commit 9ba4dae

Please sign in to comment.