We've accidently nuked our website theme and are currently trying to rebuild it based on an older backup we have from the theme. I've managed to copy all the modules from the old files to the theme, but whenever I try to upload a module with the hs upload command, it resets the module id inside the "meta.json" to a newly generated one. Since the ID is reset, the existing pages don't recognize the module and we're at the same spot as we've been before, where it doesn't show any content.
Weirdly enough, for some modules it worked, but most had the same issue with the ID being reset. Does anyone have an idea as to why that is the case and how I can make sure the ID stays the way I defined it? We need to have the same ID as I need to access the version history of the modules to get the newest changes.
Example for the meta.json:
{
"global" : false,
"content_types" : [ "LANDING_PAGE", "SITE_PAGE" ],
"host_template_types" : [ "PAGE" ],
"module_id" : 56189728985, <- this ID is being reset whenever I upload it to HubSpot
"is_available_for_new_content" : true
}