Connect your local host to Pages

The Pages editor is connected by default to the XM Cloud editing host, meaning that any content updates made in Pages apply to the entire environment. Developers who create components for XM Cloud can instead connect the Pages editor to their local host, so they can visualize and test their components without having an impact on other users who share the same environment, or on any published sites.

Important

This feature is supported from JSS version 22.1 and later, using the the metadata visualization method. If you are currently using an older version, you can consider upgrading JSS.

Connect your local host

To connect your local host to Pages:

  1. To open Pages, on your site, click Actions > Edit in Pages. Alternatively, navigate directly to https://pages.sitecorecloud.io/editor and select the relevant site in the drop-down on the top left.

  2. On the top left, open the editing host selector, and select Local host.

    The editing host selector in XM Cloud Pages
  3. Enter the name of your local host, such as http://localhost:3000/.

  4. Save your changes.

Reconnect the default editing host

At any time, you can switch back to the default editing host. When you do, your changes are reflected in the site for the entire environment and its users.

To switch back to the default editing host:

  1. Open the editing host selector.

  2. Select Default editing host.

  3. Save your changes.

Do you have some feedback for us?

If you have suggestions for improving this article,