#Vercel Caching Data during Deployment
26 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
export const revalidate = 0
In route handlers right?
In the page/handler that fetches data that you want to be fresh all the time
Still it doesn't work
you need to show some code then, i cant guess in the dark
Let me show a repo
uhm. so what is the page where you want the data to be fresh?
(user route) /home/page.tsx
revalidate = 0 not false
check this for the difference https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#revalidate
I tried =0 but it didn't work
they are basically opposite of each other
Let me check
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
thirdly, don't import the css there and everywhere
So this means that the logic in posts api I should use it in there directly?
yes
Thanks a lot i will give it a try
Thanks a lot it works like a charm