export const revalidate = 0; is the solution. By default they all are static pages. I put this line and converted them into dynamic pages. For path revalidation and created a function on separate file that takes URL of the page as the input and I exported that function for all places that required on demand revalidation.
export const revalidate = 0; is the solution. By default they all are static pages. I put this line and converted them into dynamic pages. For path revalidation and created a function on separate file that takes URL of the page as the input and I exported that function for all places that required on demand revalidation.