From 467268ff95226097d40b78df4c8b1da5981a7bfc Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:04:39 -0500 Subject: [PATCH] Added Home Page Caching --- app/(main)/page.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx index fa9d594..035d8f4 100644 --- a/app/(main)/page.tsx +++ b/app/(main)/page.tsx @@ -2,6 +2,7 @@ import { Medal } from 'lucide-react'; import localFont from 'next/font/local'; import { Poppins } from 'next/font/google'; import Link from 'next/link'; +import { GetStaticProps } from 'next'; import { cn } from '@/lib/utils'; import { Button } from '@/components/ui/button'; @@ -50,4 +51,11 @@ const MarketingPage = () => { ); }; +export const getStaticProps: GetStaticProps = async () => { + return { + props: {}, + revalidate: 60, + }; +}; + export default MarketingPage;