diff --git a/client/.env b/client/.env index fe53af4..7bf6742 100644 --- a/client/.env +++ b/client/.env @@ -1,5 +1,6 @@ # Public variables EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=https://traintrapemoi.luemy.eu/api +EXPO_PUBLIC_TRAINTRAPE_MOI_SOCKET=https://traintrapemoi.luemy.eu/ # Build variables ANDROID_HOME=/opt/android-sdk \ No newline at end of file diff --git a/client/.env.development b/client/.env.development index 2b13beb..27342fc 100644 --- a/client/.env.development +++ b/client/.env.development @@ -1 +1,2 @@ EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=http://localhost:3000/ +EXPO_PUBLIC_TRAINTRAPE_MOI_SOCKET=http://localhost:3000/ diff --git a/client/utils/socket.ts b/client/utils/socket.ts index e0bff7c..7fa9012 100644 --- a/client/utils/socket.ts +++ b/client/utils/socket.ts @@ -1,3 +1,3 @@ import { io } from 'socket.io-client' -export const socket = io(process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER) +export const socket = io(process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SOCKET)