Vercel Caching Data during Deployment
Answered
African Slender-snouted Crocodil… posted this in #help-forum
Original message was deleted.
Answered by joulev
secondly, don't fetch your own route handler inside a server environment
13 Replies
Original message was deleted
export const revalidate = 0Original message was deleted
In the page/handler that fetches data that you want to be fresh all the time
you need to show some code then, i cant guess in the dark
Original message was deleted
uhm. so what is the page where you want the data to be fresh?
Original message was deleted
revalidate = 0 not false
check this for the difference https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#revalidate
they are basically opposite of each other
Original message was deleted
also, about this part, don't do this
firstly, revalidate = 0 there has zero effect
secondly, don't fetch your own route handler inside a server environment
Answer
thirdly, don't import the css there and everywhere
yes