diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/App.tsx | 3 | ||||
-rw-r--r-- | src/constants/api.ts | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/App.tsx b/src/App.tsx index ed1efbce..9510c193 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,6 +3,7 @@ import React, {useState} from 'react'; import {Provider} from 'react-redux'; import {Channel as ChannelType, StreamChat} from 'stream-chat'; import {OverlayProvider} from 'stream-chat-react-native'; +import {STREAM_CHAT_API} from './constants'; import {navigationRef} from './RootNavigation'; import Routes from './routes'; import store from './store/configureStore'; @@ -39,7 +40,7 @@ const App = () => { LocalMessageType, LocalResponseType, LocalUserType - >('3swg9e3kgtam'); + >(STREAM_CHAT_API); return ( /** * This is the provider from the redux store, it acts as the root provider for our application diff --git a/src/constants/api.ts b/src/constants/api.ts index 22890c33..ffe47687 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -1,6 +1,12 @@ /* eslint-disable */ -// const BASE_URL: string = 'http://3.22.188.127/'; // prod server -const BASE_URL: string = 'http://127.0.0.1:8000/'; // local server + +// Dev +const BASE_URL: string = 'http://127.0.0.1:8000/'; +export const STREAM_CHAT_API = 'g2hvnyqx9cmv' + +// Prod +// const BASE_URL: string = 'http://app-prod.tagg.id/'; +// export const STREAM_CHAT_API = 'ur3kg5qz8x5v' const API_URL: string = BASE_URL + 'api/'; export const LOGIN_ENDPOINT: string = API_URL + 'login/'; |