Skip to content

Commit

Permalink
[toolbar] Update env variables in examples (#879)
Browse files Browse the repository at this point in the history
### Description

 - Fixes the required env variables in `toolbars/`
 - Pins `next` to `latest`
 - Bump `@vercel/flags`
  • Loading branch information
AndyBitz committed Mar 6, 2024
1 parent cf1ae21 commit 9587efd
Show file tree
Hide file tree
Showing 12 changed files with 188 additions and 188 deletions.
6 changes: 3 additions & 3 deletions toolbar/toolbar-launchdarkly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Learn how to set up the LaunchDarkly with the Vercel Toolbar
framework: Next.js
useCase: Vercel Toolbar
css: Tailwind
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-launchdarkly&project-name=toolbar-launchdarkly&repository-name=toolbar-launchdarkly&env=LAUNCHDARKLY_API_KEY&env=LAUNCHDARKLY_ENV&env=LAUNCHDARKLY_PROJECT_KEY&env=FLAGS_SECRET
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-launchdarkly&project-name=toolbar-launchdarkly&repository-name=toolbar-launchdarkly&env=LAUNCHDARKLY_API_KEY&env=LAUNCHDARKLY_SDK_KEY&env=LAUNCHDARKLY_ENV&env=LAUNCHDARKLY_PROJECT_KEY&env=FLAGS_SECRET
demoUrl: https://toolbar-launchdarkly.vercel.app
relatedTemplates:
- toolbar-optimizely
Expand All @@ -17,7 +17,7 @@ relatedTemplates:

This example shows how to combine the Vercel Toolbar with LaunchDarkly in Next.js.

You will need to provide the `LAUNCHDARKLY_API_KEY`, `LAUNCHDARKLY_ENV` and `LAUNCHDARKLY_PROJECT_KEY` environment variables.
You will need to provide the `LAUNCHDARKLY_API_KEY`, `LAUNCHDARKLY_SDK_KEY`, `LAUNCHDARKLY_ENV`, and `LAUNCHDARKLY_PROJECT_KEY` environment variables.

You will also need to provide a `FLAGS_SECRET` environment variable. You can generate one with `node -e "console.log(crypto.randomBytes(32).toString('base64url'))"`.

Expand All @@ -35,7 +35,7 @@ You can choose from one of the following two methods to use this repository:

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-launchdarkly&project-name=toolbar-launchdarkly&repository-name=toolbar-launchdarkly&env=LAUNCHDARKLY_API_KEY&env=LAUNCHDARKLY_ENV&env=LAUNCHDARKLY_PROJECT_KEY&env=FLAGS_SECRET)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-launchdarkly&project-name=toolbar-launchdarkly&repository-name=toolbar-launchdarkly&env=LAUNCHDARKLY_API_KEY&env=LAUNCHDARKLY_SDK_KEY&env=LAUNCHDARKLY_ENV&env=LAUNCHDARKLY_PROJECT_KEY&env=FLAGS_SECRET)

### Clone and Deploy

Expand Down
4 changes: 2 additions & 2 deletions toolbar/toolbar-launchdarkly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"dependencies": {
"@launchdarkly/node-server-sdk": "^9.1.1",
"@vercel/flags": "2.2.0",
"@vercel/flags": "2.2.1",
"@vercel/toolbar": "^0.1.10",
"next": "14.1.0",
"next": "latest",
"react": "^18",
"react-dom": "^18"
},
Expand Down
84 changes: 42 additions & 42 deletions toolbar/toolbar-launchdarkly/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions toolbar/toolbar-optimizely/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Learn how to set up the Optimizely with the Vercel Toolbar
framework: Next.js
useCase: Vercel Toolbar
css: Tailwind
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-optimizely&project-name=toolbar-optimizely&repository-name=toolbar-optimizely&env=OPTIMIZELY_API_KEY&env=OPTIMIZELY_PROJECT_ID&env=FLAGS_SECRET
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-optimizely&project-name=toolbar-optimizely&repository-name=toolbar-optimizely&env=OPTIMIZELY_API_KEY&env=OPTIMIZELY_SDK_KEY&env=OPTIMIZELY_PROJECT_ID&env=FLAGS_SECRET
demoUrl: https://toolbar-optimizely.vercel.app
relatedTemplates:
- toolbar-optimizely
Expand All @@ -17,7 +17,7 @@ relatedTemplates:

This example shows how to combine the Vercel Toolbar with Optimizely in Next.js.

You will need to provide the `OPTIMIZELY_API_KEY` and `OPTIMIZELY_PROJECT_ID` environment variables.
You will need to provide the `OPTIMIZELY_API_KEY`, `OPTIMIZELY_SDK_KEY`, and `OPTIMIZELY_PROJECT_ID` environment variables.

You will also need to provide a `FLAGS_SECRET` environment variable. You can generate one with `node -e "console.log(crypto.randomBytes(32).toString('base64url'))"`.

Expand All @@ -35,7 +35,7 @@ You can choose from one of the following two methods to use this repository:

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-optimizely&project-name=toolbar-optimizely&repository-name=toolbar-optimizely&env=OPTIMIZELY_API_KEY&env=OPTIMIZELY_PROJECT_ID&env=FLAGS_SECRET)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/toolbar/toolbar-optimizely&project-name=toolbar-optimizely&repository-name=toolbar-optimizely&env=OPTIMIZELY_API_KEY&env=OPTIMIZELY_SDK_KEY&env=OPTIMIZELY_PROJECT_ID&env=FLAGS_SECRET)

### Clone and Deploy

Expand Down
4 changes: 2 additions & 2 deletions toolbar/toolbar-optimizely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"dependencies": {
"@optimizely/optimizely-sdk": "^5.1.0",
"@vercel/flags": "2.2.0",
"@vercel/flags": "2.2.1",
"@vercel/toolbar": "^0.1.10",
"next": "14.1.0",
"next": "latest",
"react": "^18",
"react-dom": "^18"
},
Expand Down
Loading

0 comments on commit 9587efd

Please sign in to comment.