Next.js Discord

Discord Forum

Deployed app doesnt refetch data when refreshed

Answered
Eyebrowed Thrush posted this in #help-forum
Open in Discord
Eyebrowed ThrushOP
I have attatched the code for the / route which should fetch all blogs every time its loaded it works on dev but not when deployed on vercel any help is greatly appreciated any additional info needed let me know thanks!
Answered by joulev
export const revalidate = 0
View full answer

4 Replies

Eyebrowed ThrushOP
It is as if Vercel is giving me a static page and not fetching new blog posts as there are some in the database that dont get rendered on Vercel but they do in Dev
Answer
Add that to the page
Eyebrowed ThrushOP
Thankyou