Files
smom-dbis-138/services/token-aggregation/public/omnl-api-base.js
zaragoza444 af7c4e9476
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Has been cancelled
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 25s
chore(frontend): add dashboard styles and ecosystem hub modules for production build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 02:15:55 -07:00

9 lines
349 B
JavaScript

(function () {
/** auto → same-origin /api/v1 (vite proxy, portal-serve, or token-aggregation). */
window.resolveOmnlApiBase = function () {
const meta = document.querySelector('meta[name="omnl-api-base"]')?.getAttribute('content')?.trim();
if (meta && meta !== 'auto') return meta.replace(/\/$/, '');
return '/api/v1';
};
})();