fix(pda): avoid unsupported URL runtime bootstrap

This commit is contained in:
2026-08-11 20:18:09 +08:00
parent 5f585427d9
commit 687b4e4377
2 changed files with 6 additions and 4 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
const configuredApiRoot = typeof import.meta !== 'undefined'
? import.meta.env?.VITE_API_BASE_URL
: ''
const configuredApiRoot = import.meta.env.VITE_API_BASE_URL || ''
export const API_ROOT = String(configuredApiRoot || '/api').replace(/\/$/, '')
export const PLATFORM_API_ROOT = `${API_ROOT}/platform/v1`