We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 880982c commit a33f1f4Copy full SHA for a33f1f4
.env-template
@@ -1,2 +1,3 @@
1
REACT_APP_API_URL=http://localhost:3000/api
2
+REACT_APP_WS=ws://localhost:3000
3
PORT=3001
src/actions/websocket.js
@@ -1,6 +1,6 @@
import types from './actionTypes'
-const URI = process.env.WEBSOCKET_URL || 'ws://localhost:3000'
+const URI = process.env.REACT_APP_WS || 'ws://localhost:3000'
4
5
const webSocket = new WebSocket(URI);
6
0 commit comments