fix(pda): avoid unsupported URL runtime bootstrap
This commit is contained in:
+1
-3
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user