Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

setConfig

@venuecms/sdk-next


Function: setConfig()

function setConfig(params): void

Defined in: packages/sdk-next/src/lib/api/siteKey.ts:32

Configures the SDK for the site this request is being served as.

Wraps the core setConfig, which is still called so that anything reaching past this package into @venuecms/sdk keeps working, and additionally pins the siteKey for the current request only.

Parameters

Parameter
Type

params

{ options: Partial<RequestOptions<boolean, string>>; siteKey: string; }

params.options?

Partial<RequestOptions<boolean, string>>

params.siteKey

string

Returns

void

Last updated