Réparation du socket en production

This commit is contained in:
Emmy D'Anello 2024-12-19 17:49:16 +01:00
parent 956e9b6ffd
commit 4246266f9f
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -1 +1,2 @@
EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=http://localhost:3000/
EXPO_PUBLIC_TRAINTRAPE_MOI_SOCKET=http://localhost:3000/

View File

@ -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)