uhhh I think I was revalidating the wrong page

This commit is contained in:
Frank
2023-10-04 20:23:19 -06:00
parent 89bf68fe38
commit b4c4fe9df0
3 changed files with 4 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ export const getStaticProps = wrapper.getStaticProps(
props: { props: {
page: page.data[0], page: page.data[0],
}, },
revalidate: 60, revalidate: 50,
}; };
} }
); );

View File

@@ -4,6 +4,7 @@ import { getPost, getPosts, getRunningQueriesThunk } from "@/services/posts";
import { wrapper, reduxStore } from "@/lib/redux"; import { wrapper, reduxStore } from "@/lib/redux";
import Internal from "@/components/common/Internal"; import Internal from "@/components/common/Internal";
import ScrollDown from "@/components/common/scrollDown"; import ScrollDown from "@/components/common/scrollDown";
import { revalidatePath } from "next/cache";
export const getStaticPaths = async () => { export const getStaticPaths = async () => {
const store = reduxStore(); const store = reduxStore();
@@ -38,7 +39,7 @@ export const getStaticProps = wrapper.getStaticProps(
props: { props: {
post: post.data[0], post: post.data[0],
}, },
revalidate: 60, revalidate: 50,
}; };
} }
); );

View File

@@ -14,6 +14,7 @@ export const getStaticProps = wrapper.getStaticProps(
props: { props: {
posts: posts.data, posts: posts.data,
}, },
revalidate: 50,
}; };
} }
); );