Réparation du socket en production
This commit is contained in:
parent
956e9b6ffd
commit
4246266f9f
@ -1,5 +1,6 @@
|
|||||||
# Public variables
|
# Public variables
|
||||||
EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=https://traintrapemoi.luemy.eu/api
|
EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=https://traintrapemoi.luemy.eu/api
|
||||||
|
EXPO_PUBLIC_TRAINTRAPE_MOI_SOCKET=https://traintrapemoi.luemy.eu/
|
||||||
|
|
||||||
# Build variables
|
# Build variables
|
||||||
ANDROID_HOME=/opt/android-sdk
|
ANDROID_HOME=/opt/android-sdk
|
@ -1 +1,2 @@
|
|||||||
EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=http://localhost:3000/
|
EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER=http://localhost:3000/
|
||||||
|
EXPO_PUBLIC_TRAINTRAPE_MOI_SOCKET=http://localhost:3000/
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
import { io } from 'socket.io-client'
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user