Headless CraftCMS: How can I tell Craft to load live preview from a different (sub)domain? I will be using CraftCMS (Craft Solo 3.3.18.4) in headless mode as the backend for a Rails app. The Craft instance lives on a different subdomain.

How do I instruct craft to use the rails app URI when loading live preview in the preview iframe?

For example, if we presume
admin.domain.com for craft admin and
domain.com for the front end

How do I make the live preview frame to load from the live app?
domain.com/posts/first-posts-slug?x-craft-live-preview=2OcHezCnU8&amp;token=lY6F...
Since Craft 3.3.1, you can create a custom alias that resolves to your frontend base URL, and add that alias to the relevant preview targets' "URL Format" setting.

For example, assuming you put something like the below in your config/general.php file:

'aliases' =&gt; [
    '@previewBaseUrl' =&gt; 'https://domain.com',
],


...you'd be able to use that @previewBaseUrl alias in your preview targets, e.g. @previewBaseUrl/posts/{slug}