For the complete documentation index, see llms.txt. This page is also available as Markdown.

Environments

Reference for Settings > Environments: named lists of domains, the fields of an environment, and the Env selector on each experience.

An environment is a named list of domains, such as Staging or Production. When you publish an experience, you pick its environments, and it runs only on their domains.

What to type in Domains, and how environments differ from Where: see Environments and domains in Getting started. That page is the reference for the matching rules; this one covers the screen.

Where to find it

Settings > Environments (/settings/environments) lists the project's environments as tiles, with their icon, name and domains. The guided setup created one, Production, from your app domain.

Settings, Environments: the + New environment button (A) and an environment tile with its icon, name and domain (B)

Fields of an environment

Click + New environment to create one. Click an existing tile to open its details: icon, name, number of domains, description and domains. The three-dot menu of the details lets you Edit or Delete the environment.

Details of an environment, opened from its tile: icon (A), name with its number of domains (B), description (C), domains (D) and the three-dot menu to edit or delete it (E)
Field
What it does
Effect on your users

Icon and color

Tells environments apart in the dashboard

None

Name

Label shown in the Env selector at publish time

None

Domains

Host names, or a regular expression, where it applies

Experiences published to it show on these hosts only

Description

Optional note on what the environment is for

None

Icon and color

Tell environments apart at a glance in the dashboard.

Name

Shown in the Env selector at publish time. Use the words your team uses: Staging, Production, QA.

Domains

One or several host names, separated by spaces or with Enter after each, or a regular expression. Host names only: no https://, no path. Examples and pitfalls in Environments and domains.

Description

Optional. A note on what the environment is for.

Using environments

At publish time

When you publish, the Env selector lets you pick one or several environments. Its default is All domains, which matches every domain where the snippet runs, including a developer's localhost. Once you have named environments, publish to them rather than to All domains.

After publishing

Open the experience's details in the dashboard. The environment dropdown at the top right shows the current choice, All domains by default. Open it: the Select environment(s) list shows All domains and the project environments. Tick the ones you want and click Update. The change applies without republishing: this is how you move an experience from Staging to Production.

An experience published to Staging moves to Production by switching its Env, with no republish
Experience details: the environment dropdown at the top right (A), the Select environment(s) list with All domains ticked (B), and the publish status above the Update button (C)

Filter the experience list

The Environments filter on the experience list shows only the experiences of the environments you pick.

Experience list with the Environments filter open, listing the project environments to pick from (A)

Environment and Where together

The environment scopes the host; Where scopes the path. A Where rule that names a domain outside the selected environments matches nothing, and the experience never shows. Leave the domain out of Where when an environment is selected. Detail in Environments and domains.

The host picks the environment, the path is matched by Where

From your assistant: "Which environments does my project have, and which domains are in each?" See What to ask.

Who can change this

Members whose role gives access to the project settings. A change to an environment's domains applies at once to every experience published to it.

Verify

Publish a test experience to one environment only, open your app on a domain of that environment: it shows. Open a domain of another environment: it does not. If it does not show where it should, see Why my experience does not show.

Go further

Next page: Team management

Last updated