Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
413 B
TypeScript
13 lines
413 B
TypeScript
import { ENV, type EnvType } from '../env/index'
|
|
|
|
/** 各环境接口网关地址:develop / trial 走测试网关,release 走正式网关 */
|
|
const BASE_URLS: Record<EnvType, string> = {
|
|
develop: 'http://10.10.10.10:8889/',
|
|
trial: 'https://device.shuziweidao.com/gateway/',
|
|
release: 'https://device.shuziweidao.com/gateway/',
|
|
}
|
|
|
|
export const BASE_URL = BASE_URLS[ENV]
|
|
|
|
export const TIMEOUT = 30000
|