Skip to main content

DynamicServerContext

Overview​

DynamicServerContext represents the dynamic server-side context for the application, combining static server context attributes with user and session-specific properties.

Attributes​

user​

type: User (optional)

Represents the authenticated user associated with the session.

session​

type: CommerceSession (optional)

Represents the commerce session, including cart and locale information.

dynamicConfig​

type: DynamicConfig (optional)

Dynamic configuration settings for the application.

isPreview​

type: boolean (optional)

Indicates whether the application is in preview mode.

locale​

type: string

The locale used for content and commerce.