In Doc and Slide Generation we have included an export and import tool, which will allow a safe migration of templates from one environment (UAT) to another (PRD).
The tool specifically allows for SharePoint-side references to be updated in the correct manner during the importation process of the template into the new environment.
Disclaimer: We cannot guarantee that migrating templates from one environment to another using any other method will be successful and can result in templates malfunctioning. This is unfortunately not supported.
Next Article to read: