I am using ISR but adding new blogs, editing doesn't seem to be working on the production.
// /blogs/[slug].js
export async function getStaticProps({ params }) {
const res = await api.get(`/api/v1/blogs/${params.slug}`);
const blog = res.data;
return { props: { blog }, revalidate: 60 };
}
export async function getStaticPaths() {
const res = await api.get("/api/v1/blogs");
const blogs = res.data;
const paths = blogs.map((item) => ({
params: { slug: item.slug },
}));
return { paths, fallback: false };
}