Next.js Discord

Discord Forum

Vercel Caching Data during Deployment

Answered
African Slender-snouted Crocodil… posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by joulev
secondly, don't fetch your own route handler inside a server environment
View full answer

13 Replies

Original message was deleted
export const revalidate = 0
Original 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
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