diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-07 14:51:15 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-07 14:51:15 -0400 |
commit | 8f974b2466d954cdac684d10f44cf7bab930a3ff (patch) | |
tree | 83e0ed85f3cff8ca8006a227daf70fadd94b0e30 | |
parent | addafa43ed6767fa012087447fa074b84b314ec4 (diff) |
updated api key
-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/'; |