feat/ 添加app-expo三种环境切换,待测试 调整tts

This commit is contained in:
Kevin
2026-03-19 09:58:02 +08:00
parent faf7607bf9
commit 15512834d2
12 changed files with 187 additions and 18 deletions

View File

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