Env setup for production and local development

The other question I have is the “npm run build” required when you update in your production env?
Because this creates downtime when it builds.