feat/ 添加app-expo三种环境切换,待测试 调整tts
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
const DEV_API_URL = 'http://127.0.0.1:8000';
|
||||
const DEV_WS_URL = 'ws://127.0.0.1:8000';
|
||||
|
||||
const PROD_API_URL = 'https://lifecho.worldsplats.com';
|
||||
const PROD_WS_URL = 'wss://lifecho.worldsplats.com';
|
||||
|
||||
const useProdServer = process.env.EXPO_PUBLIC_USE_PROD_SERVER === 'true';
|
||||
|
||||
export const config = {
|
||||
apiBaseUrl: useProdServer ? PROD_API_URL : DEV_API_URL,
|
||||
wsBaseUrl: useProdServer ? PROD_WS_URL : DEV_WS_URL,
|
||||
apiBaseUrl: process.env.EXPO_PUBLIC_API_URL ?? 'http://192.168.10.178:8000',
|
||||
wsBaseUrl: process.env.EXPO_PUBLIC_WS_URL ?? 'ws://192.168.10.178:8000',
|
||||
isDebugMode: __DEV__,
|
||||
|
||||
api: {
|
||||
|
||||
Reference in New Issue
Block a user