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