Do I need to rebuild when my domain name changes?

Below is what I’m seeing, do I save the file before I rebuild it?