1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-04 00:18:40 +01:00

docs: move environments and API keys call-out to after figure

This commit is contained in:
Thomas Heartman 2022-10-18 14:08:44 +02:00
parent c6769acbea
commit 1b77a239e6

View File

@ -45,15 +45,15 @@ Enterprise users can create and remove environments. Open-source and Pro custome
Environments are adjacent to [feature toggles](../reference/feature-toggles.mdx) in Unleash: neither one contains the other, but they come together to let you define activation strategies. Environments are adjacent to [feature toggles](../reference/feature-toggles.mdx) in Unleash: neither one contains the other, but they come together to let you define activation strategies.
:::tip Environments and API keys <Figure img="/img/anatomy-of-unleash-new-feature-rollout.png" caption="You can use different activation strategies and constraints in different environments. For instance, you can show a feature only to select user IDs in development, but roll it out to 25% of your user base in production."/>
:::info Environments and API keys
When connecting an SDK to Unleash, it's the **API key that decides which environment to** fetch features for. For legacy reasons, all Unleash SDKs accept a configuration option called `environment`, but this **does not affect the environment** at all. It is an Unleash context field and a holdover from before Unleash had native environments. When connecting an SDK to Unleash, it's the **API key that decides which environment to** fetch features for. For legacy reasons, all Unleash SDKs accept a configuration option called `environment`, but this **does not affect the environment** at all. It is an Unleash context field and a holdover from before Unleash had native environments.
::: :::
<Figure img="/img/anatomy-of-unleash-new-feature-rollout.png" caption="You can use different activation strategies and constraints in different environments. For instance, you can show a feature only to select user IDs in development, but roll it out to 25% of your user base in production."/>
## Features (feature toggles) ## Features (feature toggles)
[**Feature toggles**](../reference/feature-toggles.mdx) are at the heart of Unleashs functionality. Feature toggles belong to projects and live next to project environments. In and of itself, a feature toggle doesnt do anything. You must assign [**activation strategies**](../user_guide/activation-strategies.md) to it for it to start taking effect. [**Feature toggles**](../reference/feature-toggles.mdx) are at the heart of Unleashs functionality. Feature toggles belong to projects and live next to project environments. In and of itself, a feature toggle doesnt do anything. You must assign [**activation strategies**](../user_guide/activation-strategies.md) to it for it to start taking effect.