scrivito
Version:
Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.
12 lines (9 loc) • 331 B
text/typescript
import { ScrivitoError, tryGetConfiguredTenant } from 'scrivito_sdk/common';
/** @public */
export function getInstanceId(): string {
const configuredTenant = tryGetConfiguredTenant();
if (configuredTenant) return configuredTenant;
throw new ScrivitoError(
"Function invoked before calling 'Scrivito.configure'"
);
}