SiteContext
@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?
optionalapiBase:string
Same-origin API prefix; "" on a sandboxed site (the proxy forwards).
apiUrl?
optionalapiUrl:string
Absolute API origin for cross-origin WebSocket transports (voice/operator).
defaultWorkflowId?
optionaldefaultWorkflowId:number|null
id?
optionalid:number
name?
optionalname:string
settings?
optionalsettings:Record<string,unknown>
Resolved theme settings declared in gravityrail.config.json.
tagLine?
optionaltagLine:string|null
uuid?
optionaluuid:string
workspaceName?
optionalworkspaceName:string
workspaceUuid?
optionalworkspaceUuid:string