Skip to main content

Goal: point your local app at a real deployed Sitecore XMC environment instead of your local Docker instance — useful for debugging content issues that only show up once something's actually deployed.

Start at the Sitecore Cloud Portal (portal.sitecorecloud.io), then jump into Sitecore Cloud Deploy. From there go to Projects, pick your project, and choose the environment you want to connect to (e.g. dev).

Inside that environment, open Developer Settings. Pick the right tenant/site if more than one is listed, and you'll see the connection details you need to drop into your app's .env.local.

``` SITECORE_EDGE_CONTEXT_ID=your_edge_context_id SITECORE_API_HOST=your_api_host PUBLIC_GRAPH_QL_ENDPOINT=your_graphql_endpoint SITECORE_SITE_NAME=your_site_name ```

Restart your local dev server after updating .env.local — these values are read at build/start time, not hot-reloaded. Once it's running, your local app is now rendering against real remote content instead of your local containers, which is exactly what you want when a bug only reproduces against deployed data.

Sitecore Cloud Deploy Projects list
Developer Settings tab for an environment, showing the site and SDK version selectors