File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11# .env.development
22REACT_APP_API_ENDPOINT = " http://localhost:5000"
3+ REACT_APP_SOCKET_ENDPOINT = " http://localhost:8810"
Original file line number Diff line number Diff line change 11# .env.production
22REACT_APP_API_ENDPOINT = " https://gsoc-donut.herokuapp.com"
3+ REACT_APP_SOCKET_ENDPOINT = " http://localhost:8810"
Original file line number Diff line number Diff line change 22# more details at https://create-react-app.dev/docs/deployment/#customizing-environment-variables-for-arbitrary-build-environments
33
44REACT_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"
Original file line number Diff line number Diff line change 11import io from 'socket.io-client'
2- const socket = io ( 'http://localhost:8810' )
2+ const socket = io ( process . env . REACT_APP_SOCKET_ENDPOINT )
33export default socket ;
You can’t perform that action at this time.
0 commit comments