What is Build?
The step that turns your project into a finished website.
When you run npm run build, Astro reads your project and writes finished files into a folder called dist. Those files are what you put online.
While you're working, the dev server does a similar job on the fly.