uhhh I think I was revalidating the wrong page
This commit is contained in:
@@ -27,7 +27,7 @@ export const getStaticProps = wrapper.getStaticProps(
|
||||
props: {
|
||||
page: page.data[0],
|
||||
},
|
||||
revalidate: 60,
|
||||
revalidate: 50,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
@@ -14,6 +14,7 @@ export const getStaticProps = wrapper.getStaticProps(
|
||||
props: {
|
||||
posts: posts.data,
|
||||
},
|
||||
revalidate: 50,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user