From 69ca511cc2fe2f815e44640e2068049a07efe4de Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 20 May 2023 15:49:11 -0700 Subject: [PATCH] revalidate home page --- src/app/(drift)/home/page.tsx | 2 ++ src/app/(drift)/page.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/app/(drift)/home/page.tsx b/src/app/(drift)/home/page.tsx index 77b26e48..a8451865 100644 --- a/src/app/(drift)/home/page.tsx +++ b/src/app/(drift)/home/page.tsx @@ -1,3 +1,5 @@ import HomePage from "../page" export default HomePage + +export const revalidate = 300 diff --git a/src/app/(drift)/page.tsx b/src/app/(drift)/page.tsx index 02d83200..af4e9580 100644 --- a/src/app/(drift)/page.tsx +++ b/src/app/(drift)/page.tsx @@ -12,6 +12,8 @@ import { cache, Suspense } from "react" import ErrorBoundary from "@components/error/fallback" import { Stack } from "@components/stack" +export const revalidate = 300 + const getWelcomeData = cache(async () => { const welcomeContent = await getWelcomeContent() return welcomeContent