Skip to content

Commit a24e0e0

Browse files
committed
updated sockets
1 parent 2c11e32 commit a24e0e0

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#.env.development
22
REACT_APP_API_ENDPOINT = "http://localhost:5000"
3+
REACT_APP_SOCKET_ENDPOINT = "http://localhost:8810"

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#.env.production
22
REACT_APP_API_ENDPOINT = "https://codeuino-donut-development.herokuapp.com"
3+
REACT_APP_SOCKET_ENDPOINT = "http://localhost:8810"

.env.staging

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# more details at https://create-react-app.dev/docs/deployment/#customizing-environment-variables-for-arbitrary-build-environments
33

44
REACT_APP_CUSTOM_NODE_ENV = "staging"
5-
REACT_APP_API_ENDPOINT = "https://codeuino-donut-development.herokuapp.com"
5+
REACT_APP_API_ENDPOINT = "https://codeuino-donut-development.herokuapp.com"
6+
REACT_APP_SOCKET_ENDPOINT = "http://localhost:8810"

src/user/dashboard/utils/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import io from 'socket.io-client'
2-
const socket = io(`${process.env.REACT_APP_API_ENDPOINT}:8810`)
2+
const socket = io(process.env.REACT_APP_SOCKET_ENDPOINT)
33
export default socket;

0 commit comments

Comments
 (0)