Skip to main content

SiteContext

@gravity-rail/react


@gravity-rail/react / SiteContext

Interface: SiteContext

The site context Gravity Rail injects into a compiled source-site bundle as window.GRAVITY_RAIL_SITE_CONTEXT. On a third-party host you supply the relevant fields (e.g. workspaceUuid) through GravityRailConfig instead.

Properties​

apiBase?​

optional apiBase: string

Same-origin API prefix; "" on a sandboxed site (the proxy forwards).


apiUrl?​

optional apiUrl: string

Absolute API origin for cross-origin WebSocket transports (voice/operator).


defaultWorkflowId?​

optional defaultWorkflowId: number | null


id?​

optional id: number


name?​

optional name: string


settings?​

optional settings: Record<string, unknown>

Resolved theme settings declared in gravityrail.config.json.


tagLine?​

optional tagLine: string | null


uuid?​

optional uuid: string


workspaceName?​

optional workspaceName: string


workspaceUuid?​

optional workspaceUuid: string