Skip to content

Commit a33f1f4

Browse files
committed
Fix websocket env variable
1 parent 880982c commit a33f1f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.env-template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
REACT_APP_API_URL=http://localhost:3000/api
2+
REACT_APP_WS=ws://localhost:3000
23
PORT=3001

src/actions/websocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import types from './actionTypes'
22

3-
const URI = process.env.WEBSOCKET_URL || 'ws://localhost:3000'
3+
const URI = process.env.REACT_APP_WS || 'ws://localhost:3000'
44

55
const webSocket = new WebSocket(URI);
66

0 commit comments

Comments
 (0)