diff --git a/app/api/library-hours/route.tsx b/app/api/library-hours/route.tsx index 884942b2..dec93ba4 100644 --- a/app/api/library-hours/route.tsx +++ b/app/api/library-hours/route.tsx @@ -17,8 +17,7 @@ type FetchedData = { } export const dynamic = "force-static" -export const revalidate = 30 -// export const revalidate = 28800 +export const revalidate = 28800 const getLibraryHours = async (): Promise> => { const from = new Date() @@ -30,12 +29,6 @@ const getLibraryHours = async (): Promise> => { params.set("from", from.toISOString().replace(/T.*/, "")) params.set("to", to.toISOString().replace(/T.*/, "")) - if (new Date().getMinutes() >= 45) { - console.log("fail") - return {} - } - - console.log("fetch") const data: FetchedData = await fetch(`https://library-hours.stanford.edu/libraries.json?${params.toString()}`, { cache: "no-store", })