revalidate home page

This commit is contained in:
Max Leiter 2023-05-20 15:49:11 -07:00
parent a1fa7dbb8a
commit 69ca511cc2
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,5 @@
import HomePage from "../page" import HomePage from "../page"
export default HomePage export default HomePage
export const revalidate = 300

View file

@ -12,6 +12,8 @@ import { cache, Suspense } from "react"
import ErrorBoundary from "@components/error/fallback" import ErrorBoundary from "@components/error/fallback"
import { Stack } from "@components/stack" import { Stack } from "@components/stack"
export const revalidate = 300
const getWelcomeData = cache(async () => { const getWelcomeData = cache(async () => {
const welcomeContent = await getWelcomeContent() const welcomeContent = await getWelcomeContent()
return welcomeContent return welcomeContent