Next.js Discord

Discord Forum

Can't see new posts after deploy on vercel

Unanswered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
Hi everyone!
I'm experiencing an issue after deploying on Vercel. In my project, users can create posts and interact with them, but after deploying on Vercel, the posts page (/posts) does not update after creating a new post, even though it's created correctly in the DB.
This means that I can only see the posts that existed before the deploy, while serving on localhost I can see all of them. Has anyone experienced this? Is it related to SSG?
I'm using App Router and Server Actions with Next 14. Should I do a revalidatePath for all paths that display posts (/home, /profile, /posts ...)?

1 Reply

Northeast Congo Lion
heya @Sloth bear , I am experiencing the same problem: localhost changes are visible but when I deploy the changes cannot be seen on the hosted domain. did you happen to figure out a fix for this?