I wrote a blog post showing how you can configure an external Rendering Host to be used by Experience Editor and Pages when working with Sitecore XM Cloud.
https://robearlam.com/blog/setting-up-an-external-xm-cloud-rendering-host-to-work-with-experience-editor-and-pages
https://robearlam.com/blog/setting-up-an-external-xm-cloud-rendering-host-to-work-with-experience-editor-and-pages