From 4246266f9f70e4941042248267fca9942707e349 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 19 Dec 2024 17:49:16 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9paration=20du=20socket=20en=20production?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/.env | 1 + client/.env.development | 1 + client/utils/socket.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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)