mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-05 23:32:49 +08:00
修改前端api配置
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
* API 基础配置:自动探测内网/公网后端,失败时回退公网
|
||||
*/
|
||||
const API_PREFIX = '/api/v1'
|
||||
const LAN_BACKEND_ORIGIN = 'http://10.252.130.135:8000'
|
||||
const PUBLIC_BACKEND_ORIGIN = 'http://47.107.130.88:51290'
|
||||
const LAN_BACKEND_ORIGIN = import.meta.env.VITE_BACKEND_ORIGIN
|
||||
const PUBLIC_BACKEND_ORIGIN = import.meta.env.VITE_BACKEND_ORIGIN
|
||||
const PROBE_TIMEOUT_MS = 1200
|
||||
|
||||
console.log(LAN_BACKEND_ORIGIN);
|
||||
|
||||
const LAN_API_BASE_URL = `${LAN_BACKEND_ORIGIN}${API_PREFIX}`
|
||||
const PUBLIC_API_BASE_URL = `${PUBLIC_BACKEND_ORIGIN}${API_PREFIX}`
|
||||
const ENV_API_BASE_URL = import.meta.env.VITE_API_BASE_URL as string | undefined
|
||||
|
||||
Reference in New Issue
Block a user