- interview_turn_plan: 识别低信息短回复,引导 AI 承接后主动追问新话题 - development.sh / docker-compose.dev: Postgres/Redis 端口与 .env 对齐,补充宿主机端口监听检查 - Alembic: 补回 0016 memory pipeline status、0017 segment narrative defer - app-expo: api/ws URL 去掉末尾斜杠,避免 WS 双斜杠;更新 .env.staging Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
585 B
TypeScript
26 lines
585 B
TypeScript
function trimTrailingSlashes(value: string): string {
|
|
return value.replace(/\/+$/, '');
|
|
}
|
|
|
|
export const config = {
|
|
apiBaseUrl: trimTrailingSlashes(
|
|
process.env.EXPO_PUBLIC_API_URL ?? 'http://192.168.10.151:8000',
|
|
),
|
|
wsBaseUrl: trimTrailingSlashes(
|
|
process.env.EXPO_PUBLIC_WS_URL ?? 'ws://192.168.10.151:8000',
|
|
),
|
|
isDebugMode: __DEV__,
|
|
|
|
api: {
|
|
timeoutMs: 30_000,
|
|
refreshPath: '/api/auth/refresh',
|
|
},
|
|
|
|
ws: {
|
|
reconnectMaxRetries: 10,
|
|
reconnectBaseDelayMs: 1_000,
|
|
reconnectMaxDelayMs: 30_000,
|
|
heartbeatIntervalMs: 30_000,
|
|
},
|
|
} as const;
|