Skip to content

Commit

Permalink
chore: add seperate variant attachment section with limit
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps committed Nov 5, 2024
1 parent 96b0688 commit e4009ab
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@ Variants are options for flags. For example, if you have a flag `colorscheme`
that determines which main colors your users see when they login to your
application, then possible variants could include `dark`, `light` or `auto`.

<Tip>
Variants can also have JSON attachments. This allows you to store additional
data about a variant that can be used in your application at runtime.
</Tip>
#### Variant Attachments

Variants can also have JSON attachments. This allows you to store additional
data about a variant that can be used in your application at runtime.

<Warning>

Variant attachments are not used for evaluation, they are only used for runtime configuration.

Check warning on line 64 in concepts.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'aren't' instead of 'are not'. Raw Output: {"message": "[Microsoft.Contractions] Use 'aren't' instead of 'are not'.", "location": {"path": "concepts.mdx", "range": {"start": {"line": 64, "column": 21}}}, "severity": "WARNING"}

Check warning on line 64 in concepts.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'they're' instead of 'they are'. Raw Output: {"message": "[Microsoft.Contractions] Use 'they're' instead of 'they are'.", "location": {"path": "concepts.mdx", "range": {"start": {"line": 64, "column": 50}}}, "severity": "WARNING"}

The attachment size is limited to **1MB**.

</Warning>

![Variant Flags Example](/images/concepts/flags_variants.png)

Expand Down

0 comments on commit e4009ab

Please sign in to comment.