Skip to content

Commit 73f12f2

Browse files
authoredFeb 21, 2025··
Merge pull request #2438 from ably/fix-vite-ably-key-name
Fix incorrect Vite/Next Ably key variable names in READMEs
2 parents 08064b7 + d2ad6cf commit 73f12f2

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed
 

‎examples/chat-room-messages/page.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cd /examples/chat-room-messages/react/
5757
mv .env.example .env.local
5858
```
5959

60-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
60+
4. In `.env.local` update the value of `NEXT_PUBLIC_ABLY_KEY` to be your Ably API key.
6161

6262
5. Install dependencies:
6363

@@ -93,7 +93,7 @@ cd /examples/chat-room-messages/javascript/
9393
mv .env.example .env.local
9494
```
9595

96-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
96+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9797

9898
5. Install dependencies:
9999

‎examples/pub-sub-channel-messages/javascript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cd /examples/pub-sub-channel-messages/javascript/
2222
mv .env.example .env.local
2323
```
2424

25-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
25+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
2626

2727
5. Install dependencies:
2828

‎examples/pub-sub-channel-messages/page.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cd /examples/pub-sub-channel-messages/react/
5757
mv .env.example .env.local
5858
```
5959

60-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
60+
4. In `.env.local` update the value of `NEXT_PUBLIC_ABLY_KEY` to be your Ably API key.
6161

6262
5. Install dependencies:
6363

@@ -93,7 +93,7 @@ cd /examples/pub-sub-channel-messages/javascript/
9393
mv .env.example .env.local
9494
```
9595

96-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
96+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9797

9898
5. Install dependencies:
9999

‎examples/pub-sub-channel-messages/react/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cd /examples/pub-sub-channel-messages/react/
2222
mv .env.example .env.local
2323
```
2424

25-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
25+
4. In `.env.local` update the value of `NEXT_PUBLIC_ABLY_KEY` to be your Ably API key.
2626

2727
5. Install dependencies:
2828

‎examples/pub-sub-connection-state/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ cd /examples/pub-sub-connection-state/javascript/
8686
mv .env.example .env.local
8787
```
8888

89-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
89+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9090

9191
5. Install dependencies:
9292

‎examples/pub-sub-history/page.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cd /examples/pub-sub-history/react/
5757
mv .env.example .env.local
5858
```
5959

60-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
60+
4. In `.env.local` update the value of `NEXT_PUBLIC_ABLY_KEY` to be your Ably API key.
6161

6262
5. Install dependencies:
6363

@@ -93,7 +93,7 @@ cd /examples/pub-sub-history/javascript/
9393
mv .env.example .env.local
9494
```
9595

96-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
96+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9797

9898
5. Install dependencies:
9999

‎examples/pub-sub-message-encryption/javascript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cd /examples/pub-sub-message-encryption/javascript/
2222
mv .env.example .env.local
2323
```
2424

25-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
25+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
2626

2727
5. Install dependencies:
2828

‎examples/pub-sub-message-encryption/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cd /examples/pub-sub-message-encryption/javascript/
9393
mv .env.example .env.local
9494
```
9595

96-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
96+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9797

9898
5. Install dependencies:
9999

‎examples/pub-sub-presence/page.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ cd /examples/pub-sub-presence/react/
5858
mv .env.example .env.local
5959
```
6060

61-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
61+
4. In `.env.local` update the value of `NEXT_PUBLIC_ABLY_KEY` to be your Ably API key.
6262

6363
5. Install dependencies:
6464

@@ -94,7 +94,7 @@ cd /examples/pub-sub-presence/javascript/
9494
mv .env.example .env.local
9595
```
9696

97-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
97+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9898

9999
5. Install dependencies:
100100

‎examples/spaces-avatar-stack/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ cd /examples/spaces-avatar-stack/javascript/
9494
mv .env.example .env.local
9595
```
9696

97-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
97+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9898

9999
5. Install depdencies:
100100

‎examples/spaces-component-locking/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ cd /examples/spaces-component-locking/javascript/
9999
mv .env.example .env.local
100100
```
101101

102-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
102+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
103103

104104
5. Install depdencies:
105105

‎examples/spaces-live-cursors/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ cd /examples/spaces-live-cursors/javascript/
9595
mv .env.example .env.local
9696
```
9797

98-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
98+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9999

100100
5. Install depdencies:
101101

‎examples/spaces-member-location/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ cd /examples/spaces-member-location/javascript/
9494
mv .env.example .env.local
9595
```
9696

97-
4. In `.env.local` update the value of `VITE_PUBLIC_API_KEY` to be your Ably API key.
97+
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
9898

9999
5. Install depdencies:
100100

0 commit comments

Comments
 (0)
Please sign in to comment.