Skip to content

Commit 2bc8e78

Browse files
committed
fix: refer to kv env vars in redis examples
1 parent 5f57948 commit 2bc8e78

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

redis/tutorials/nextjs_with_redis.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ UPSTASH_REDIS_REST_URL=<YOUR_URL>
3030
UPSTASH_REDIS_REST_TOKEN=<YOUR_TOKEN>
3131
```
3232

33+
<Note>
34+
If you are using the Vercel & Upstash integration, you may use the following environment variables:
35+
36+
```shell .env
37+
KV_REST_API_URL=<YOUR_URL>
38+
KV_REST_API_TOKEN=<YOUR_TOKEN>
39+
```
40+
</Note>
41+
3342
### Home Page Setup
3443

3544
Update `/app/page.tsx`:

redis/tutorials/nuxtjs_with_redis.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ UPSTASH_REDIS_REST_TOKEN=""
4545

4646
You can get the values of these env variables on the page of your Redis database.
4747

48+
<Note>
49+
If you are using the Vercel & Upstash integration, you may use the following environment variables:
50+
51+
```shell .env
52+
KV_REST_API_URL=<YOUR_URL>
53+
KV_REST_API_TOKEN=<YOUR_TOKEN>
54+
```
55+
</Note>
56+
4857
### `4` Define the endpoint
4958

5059
Next, we will define the endpoint which will call Redis:

0 commit comments

Comments
 (0)