I tried this, but ran into quite a bit of issues since wp search-replace was failing in the CLI and all links are pointing to the “normal” url.
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
I’ll have to try this out with a different and perhaps less-complex install to see if I can debug it any further.