2026-08-25 00:24:57 +08:00
|
|
|
const runtimeEnvironment = import.meta.env || {}
|
|
|
|
|
const configuredAuthApiRoot = runtimeEnvironment.VITE_AUTH_API_BASE_URL || ''
|
|
|
|
|
const configuredOverseasApiRoot = runtimeEnvironment.VITE_OVERSEAS_API_BASE_URL || ''
|
2026-08-20 20:10:20 +08:00
|
|
|
|
|
|
|
|
export const API_ROOT = String(configuredAuthApiRoot || '/api').replace(/\/$/, '')
|
|
|
|
|
export const OVERSEAS_API_ROOT = String(configuredOverseasApiRoot || '/api/overseas').replace(/\/$/, '')
|