Env setup for production and local development

Could you? Yes
Should you? No

Only when a production variable has changed (generally only the root url key in server.js or anything in the admin object of the server.js

Likewise if you update any Strapi package versions you have to rebuild. Changing models, no. Any modifications to the Admin panel, or plugin Admin extensions is yes (not controllers, services, ect).


The easiest way to know if you need to rebuild, if you think it is compiled into the react build of the admin panel, you should rebuild. Anything based on the Koa backend you don’t.