Skip to content

Commit

Permalink
Merge pull request #55 from HackAtUCI/fix/cache-revalidation
Browse files Browse the repository at this point in the history
Added cache revalidation time of 60 seconds for Sanity content
  • Loading branch information
alexanderl19 authored Oct 5, 2023
2 parents 6942eaf + 181349a commit a3600a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/site/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const revalidate = 60;

export { Home as default } from "@/views";
1 change: 1 addition & 0 deletions apps/site/src/views/Home/sections/FAQ/getQuestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Questions = z.array(
})
);


export const getQuestions = cache(async () => {
return Questions.parse(
await client.fetch(
Expand Down

0 comments on commit a3600a4

Please sign in to comment.