Files
openapi-ui/src/utils/getBaseprefix.ts
2025-06-09 14:57:18 +03:00

8 lines
243 B
TypeScript

/* eslint-disable no-underscore-dangle */
export const getBasePrefix = (isFederation?: boolean) => {
if (isFederation) {
return '/openapi-ui-federation'
}
return window._env_.BASEPREFIX || import.meta.env.BASE_URL || '/openapi-ui'
}