7 lines
244 B
JavaScript
7 lines
244 B
JavaScript
const configuredApiRoot = typeof import.meta !== 'undefined'
|
|
? import.meta.env?.VITE_API_BASE_URL
|
|
: ''
|
|
|
|
export const API_ROOT = String(configuredApiRoot || '/api').replace(/\/$/, '')
|
|
export const PLATFORM_API_ROOT = `${API_ROOT}/platform/v1`
|