From b4c4fe9df089a8f04e84d20e411ecc1bfce424be Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 4 Oct 2023 20:23:19 -0600 Subject: [PATCH] uhhh I think I was revalidating the wrong page --- src/pages/[slug].tsx | 2 +- src/pages/blog/[slug]/index.tsx | 3 ++- src/pages/blog/index.tsx | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/[slug].tsx b/src/pages/[slug].tsx index 72cb374..bb77b8c 100644 --- a/src/pages/[slug].tsx +++ b/src/pages/[slug].tsx @@ -27,7 +27,7 @@ export const getStaticProps = wrapper.getStaticProps( props: { page: page.data[0], }, - revalidate: 60, + revalidate: 50, }; } ); diff --git a/src/pages/blog/[slug]/index.tsx b/src/pages/blog/[slug]/index.tsx index d7969e5..e7e52ac 100644 --- a/src/pages/blog/[slug]/index.tsx +++ b/src/pages/blog/[slug]/index.tsx @@ -4,6 +4,7 @@ import { getPost, getPosts, getRunningQueriesThunk } from "@/services/posts"; import { wrapper, reduxStore } from "@/lib/redux"; import Internal from "@/components/common/Internal"; import ScrollDown from "@/components/common/scrollDown"; +import { revalidatePath } from "next/cache"; export const getStaticPaths = async () => { const store = reduxStore(); @@ -38,7 +39,7 @@ export const getStaticProps = wrapper.getStaticProps( props: { post: post.data[0], }, - revalidate: 60, + revalidate: 50, }; } ); diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index 0907cdb..86f0096 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -14,6 +14,7 @@ export const getStaticProps = wrapper.getStaticProps( props: { posts: posts.data, }, + revalidate: 50, }; } );