revalidatePath doesn't invalidate ISR
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
why revalidatePath doesn't invalidate my home page even with full reload.
in local machine it works, but in vercel it doesn't
reference:
home: https://github.com/alexndrho/stickythoughts/blob/e197ad6a661ff588931eefe89948f4e86ed6ac5f/src/app/(main)/page.tsx#L18
route that invalidates:
https://github.com/alexndrho/stickythoughts/blob/e197ad6a661ff588931eefe89948f4e86ed6ac5f/src/app/api/dashboard/thoughts/%5BthoughtId%5D/highlight/route.ts#L144
in local machine it works, but in vercel it doesn't
export const revalidate = 86400; // 24 hours in secondsrevalidatePath("/", "page");reference:
home: https://github.com/alexndrho/stickythoughts/blob/e197ad6a661ff588931eefe89948f4e86ed6ac5f/src/app/(main)/page.tsx#L18
route that invalidates:
https://github.com/alexndrho/stickythoughts/blob/e197ad6a661ff588931eefe89948f4e86ed6ac5f/src/app/api/dashboard/thoughts/%5BthoughtId%5D/highlight/route.ts#L144