It depends on the situation…
In production mode
Yes, it’s necessary to run
yarn build for vue-storefront to update the config. For vue-storefront-api, you can just run
yarn start and it will automatically rebuild before starting.
I find it’s not necessary to run
yarn pm2 stop all, if you rebuild the same instance. But it’s important to run
yarn pm2 kill if you make another instance (eg copy the vue-storefront folder, or download a fresh copy to another location). I always do this, so I can rebuild without affecting the live site.
In Development mode
For both vue-storefront and vue-storefront-api, it’s not necessary to rebuild. In both cases, just stop the current applications (Ctrl+C) and run
yarn dev again.
If you make any changes to the Vuex store definitions, (generally with custom modules), then a rebuild is needed.
I hope that helps