test: harden overseas pda token session

This commit is contained in:
2026-08-25 00:24:57 +08:00
parent bc986f1eef
commit f2b9d48268
8 changed files with 373 additions and 34 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
const configuredAuthApiRoot = import.meta.env.VITE_AUTH_API_BASE_URL || ''
const configuredOverseasApiRoot = import.meta.env.VITE_OVERSEAS_API_BASE_URL || ''
const runtimeEnvironment = import.meta.env || {}
const configuredAuthApiRoot = runtimeEnvironment.VITE_AUTH_API_BASE_URL || ''
const configuredOverseasApiRoot = runtimeEnvironment.VITE_OVERSEAS_API_BASE_URL || ''
export const API_ROOT = String(configuredAuthApiRoot || '/api').replace(/\/$/, '')
export const OVERSEAS_API_ROOT = String(configuredOverseasApiRoot || '/api/overseas').replace(/\/$/, '')