Skip to content

Commit 7d102ad

Browse files
committed
chore: upgrade to Featurevisor v2.0
1 parent 3a31fce commit 7d102ad

File tree

9 files changed

+1177
-706
lines changed

9 files changed

+1177
-706
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
3838
- name: Upload to Cloudflare Pages
3939
run: |
40-
echo "<html><body>It works.</body></html>" > dist/index.html
41-
npx wrangler pages deploy dist --project-name="featurevisor-example-cloudflare"
40+
echo "<html><body>It works.</body></html>" > datafiles/index.html
41+
npx wrangler pages deploy datafiles --project-name="featurevisor-example-cloudflare"
4242
env:
4343
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4444
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ npm-debug.log*
44
.DS_Store
55

66
dist
7+
datafiles
78
out

attributes/country.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
archived: false
21
description: country code in lower case (two lettered)
32
type: string

attributes/deviceId.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
description: Device ID
22
type: string
3-
capture: true

attributes/userId.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
description: User ID
22
type: string
3-
capture: true

features/baz.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ tags:
44

55
bucketBy: userId
66

7-
environments:
7+
rules:
88
staging:
9-
rules:
10-
- key: "1"
11-
segments: "*"
12-
percentage: 100
9+
- key: everyone
10+
segments: "*"
11+
percentage: 100
1312
production:
14-
rules:
15-
- key: "1"
16-
segments: "*"
17-
percentage: 80
13+
- key: everyone
14+
segments: "*"
15+
percentage: 80

features/my_feature.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ tags:
44

55
bucketBy: deviceId
66

7-
environments:
7+
rules:
88
staging:
9-
rules:
10-
- key: "1"
11-
segments: "*"
12-
percentage: 100
9+
- key: everyone
10+
segments: "*"
11+
percentage: 100
1312
production:
14-
rules:
15-
- key: "1"
16-
segments: "*"
17-
percentage: 100
13+
- key: everyone
14+
segments: "*"
15+
percentage: 100

0 commit comments

Comments
 (0)