In plain words
The build is the step before launch that turns your code into files ready to serve, and runtime is when those files run for real visitors.
Where you see it
The deploy log on Vercel or Netlify: npm run build, a minute of output, then a line saying the build finished. An error in that log stops the deploy; an error after it only shows up when someone uses the site.
What goes wrong
- Changing a public variable without rebuilding
VITE_ and NEXT_PUBLIC_ values are pasted into the code during the build. Update one on your host and the live site keeps the old value until you redeploy.
- Trusting the preview over the build
The dev preview is forgiving and the production build is strict. A TypeScript error the preview ignored can fail the deploy.
- Reading the database during the build
Data fetched at build time is frozen at that minute. New posts won't appear until the next deploy unless the page is set to refresh.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYou change VITE_API_URL on Netlify, but the live site still calls the old address. Why?