sitemap.ts revalidate 0 not working ?
Unanswered
Alaskan Husky posted this in #help-forum
Alaskan HuskyOP
I am using a
Like I usually do I added :
But at build time nextjs try to execute some queries that are inside the file and crash (because my endpoint is not available at build time).
Using revalidate 0 is supposed to fix this, as I do in my other classic routes.
Any idea ?
I am using the latest next version : 14.2.3
Thank you !
sitemap.ts who uses generateSitemaps and sitemap.Like I usually do I added :
export const revalidate = 0;But at build time nextjs try to execute some queries that are inside the file and crash (because my endpoint is not available at build time).
Using revalidate 0 is supposed to fix this, as I do in my other classic routes.
Any idea ?
I am using the latest next version : 14.2.3
Thank you !