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.
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.

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.

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.


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

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.

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


