Skip to content

Commit 5efb581

Browse files
committed
docs: suggestions/changes
1 parent 772ebd6 commit 5efb581

3 files changed

Lines changed: 10 additions & 26 deletions

File tree

src/content/docs/flagship/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818

1919
<Description>
2020

21-
Evaluate feature flags at the edge in Cloudflare Workers.
21+
Ship features safely with feature flags.
2222

2323
</Description>
2424

src/content/docs/flagship/reference/limits.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Flagship enforces the following limits.
1313
| ------------------------------- | -------- |
1414
| Apps per account | 10,000 |
1515
| Flags per app | 5,000 |
16-
16+
| Condition nesting depth | 6 levels |
1717
| Flag configuration size per app | 25 MB |
1818

1919
:::note
@@ -22,4 +22,5 @@ The apps-per-account and flags-per-app limits are soft limits. If your use case
2222

2323
## Notes
2424

25+
- Condition nesting depth counts from the top-level condition group. A flat list of conditions (no nesting) has a depth of 1.
2526
- Flag configuration size refers to the total serialized size of all flags within a single app, including their variations and rules.

src/content/docs/flagship/targeting/index.mdx

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,15 @@ Each condition compares an attribute from the evaluation context against a value
3131

3232
## Logical grouping
3333

34-
Conditions within a rule are combined with `AND` and `OR` operators. The grouping follows a simple rule: **`OR` starts a new group, `AND` stays in the current group**. Equivalently, `AND` binds tighter than `OR`.
34+
Conditions within a rule can be grouped with `AND`/`OR` operators and nested up to six levels deep.
3535

36-
You can think of the condition list as being split at every `OR` boundary. Each segment between `OR`s forms its own group, and all `AND`s inside that segment belong to the same group. The rule matches when any one group matches entirely.
36+
For example, to target enterprise users in the US or Canada:
3737

38-
For example:
39-
40-
```
41-
IF country IN ["US", "CA"]
42-
AND plan equals "enterprise"
43-
OR email ends_with "cloudflare.com"
44-
OR beta_tester equals true
45-
AND user_age_days > 30
46-
```
47-
48-
This evaluates as:
49-
50-
```
51-
(country IN ["US", "CA"] AND plan equals "enterprise")
52-
OR (email ends_with "cloudflare.com")
53-
OR (beta_tester equals true AND user_age_days > 30)
54-
```
55-
56-
The rule matches users who are either:
57-
- in the US or Canada **and** on the enterprise plan, or
58-
- using a `cloudflare.com` email address, or
59-
- a beta tester **and** have been a user for more than 30 days.
38+
- `AND`:
39+
- `plan equals "enterprise"`
40+
- `OR`:
41+
- `country equals "US"`
42+
- `country equals "CA"`
6043

6144
## Learn more
6245

0 commit comments

Comments
 (0)