Skip to content

RuntimeMode

const RuntimeMode: object

Runtime-mode values (plan 144). Reference these constants instead of raw string literals when setting RevTurbineInitOptions.runtimeMode — e.g. runtimeMode: RuntimeMode.LocalOnly.

readonly CustomEndpoints: "custom_endpoints" = 'custom_endpoints'

Customer-provided endpoint replacements.

readonly LocalOnly: "local_only" = 'local_only'

No server calls — runtime data is initialized locally from RevTurbineInitOptions.localRuntime. Emits no telemetry (neither the /api/track clickstream nor the keyless /api/sdk/meta beacon), which makes it the correct mode for demos and examples so they never report events.

readonly Server: "revturbine_server" = 'revturbine_server'

Standard RevTurbine-hosted endpoints (the default).