From e500a97d6b080bde4c148be26bd6ce6a6c9cd4dc Mon Sep 17 00:00:00 2001 From: Melek Date: Thu, 15 Aug 2024 21:15:11 -0400 Subject: [PATCH] adding revalidate --- apps/somai.me/.gitignore | 2 ++ apps/somai.me/app/essay/[slug]/page.tsx | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 apps/somai.me/.gitignore diff --git a/apps/somai.me/.gitignore b/apps/somai.me/.gitignore new file mode 100644 index 0000000..c8a7336 --- /dev/null +++ b/apps/somai.me/.gitignore @@ -0,0 +1,2 @@ +.vercel +.env*.local diff --git a/apps/somai.me/app/essay/[slug]/page.tsx b/apps/somai.me/app/essay/[slug]/page.tsx index c238c25..6e6256d 100644 --- a/apps/somai.me/app/essay/[slug]/page.tsx +++ b/apps/somai.me/app/essay/[slug]/page.tsx @@ -16,6 +16,8 @@ type Props = { params: { slug: string }; }; +export const revalidate = 0; + export default function EssayPage({ params }: Props) { const post = getPostBySlug(params.slug); const ast = Markdoc.parse(post.content);