Next.js Discord

Discord Forum

astro vercel not running npm run build, giving stale data on deploy

Unanswered
Bengal posted this in #help-forum
Open in Discord
BengalOP
Hey guys, I have an astro site deployed to vercel. It's connected to a cms which means it fetches remote data. Now I get that I need to re-build each time to see the new data, but vercel deploy apparently doesn't run npm run build? If I build on my local machine then deploy to Vercel then it works with the new data since npm run build on my machine recompiles everything and refetches data from the CMS, but I'm expecting the same behaviour when deploying to Vercle which I'm not seeing.

This is my build log in Vercel

0 Replies