Related services: SiteService:
lynkow.site.getConfig()
Client
Interface
The client returned by createClient: every LynkowClient service, plus the commerce services, locale management, events and image helpers.
Extends: LynkowClient
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Pageview and event tracking. Browser only. |
|
| No | Locales the site enables (e.g. |
|
| No | Global blocks: site-wide data such as the header navigation or the footer. |
|
| No | The "Made with Lynkow" badge. Browser only. |
|
| No | The buyer's cart. Requires |
|
| No | Content categories, as a list or a tree. |
|
| No | Turns the current cart into an order. Requires |
|
| No | The client's |
|
| No | The cookie consent banner and the visitor's choices, built on |
|
| No | Published blog articles. |
|
| No | The cookie banner configuration and consent logging. |
|
| No | Buyer accounts: sign-up, sign-in, profile, order history and password<br>reset. Requires |
|
| No | Browser behavior for rendered content, such as code-block copy buttons. |
|
| No | Form schemas and form submissions. |
|
| No | Global blocks: site-wide data such as the header navigation or the footer. |
|
| No | Legal documents such as the privacy policy or the terms of service. |
|
| No | The client's current locale. Without a configured, detected or set locale,<br>it reads |
|
| No | The site's markets: countries, languages and currency. Requires |
|
| No | Image URL helpers for resized and responsive images. |
|
| No | Guest order lookup through the token of an order link. Requires<br> |
|
| No | Site pages such as the homepage or the contact page, distinct from blog articles. |
|
| No | Every renderable path, path resolution and redirect matching, for static generation. |
|
| No | The payment methods the site accepts at checkout, with logos. Requires |
|
| No | The product category tree. Requires |
|
| No | Product collections. Requires |
|
| No | Published products. Requires |
|
| No | Availability and bookings of bookable products. Requires |
|
| No | Approved reviews, review submissions and the site's review settings. |
|
| No | Lynkow search, on the server or straight from the browser. |
|
| No | Plain-text SEO files: robots.txt, sitemap, llms.txt and page Markdown. |
|
| No | Shipping options of one market. Requires |
|
| No | The site configuration: identity, locales and branding setting. |
|
| No | Content tags. |
|
| No | Site variables: named values such as a phone number, per locale. |
ClientConfig
Interface
Options of createClient: LynkowConfig plus debug, cache
and enhancements.
Extends: LynkowConfig
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Base URL of the Lynkow API, for local development. A trailing slash is<br>removed. Defaults to |
|
| Yes | Caches responses in the SDK: in memory on the server, in |
|
| Yes | IP address of the buyer a server-side call is made for. Sent only together with<br> |
|
| Yes | Session token of a signed-in buyer, to restore the session after a reload<br>or on the server. Customer calls send it as |
|
| Yes | Logs the SDK's activity to the console. Defaults to |
|
| Yes | Defaults for |
|
| Yes |
|
|
| Yes | Locale sent with every request, one the site enables (e.g. |
|
| Yes | Publishable key ( |
|
| Yes | Called before each request with its method and URL, to add headers<br>computed for that request, such as the buyer IP read from the incoming<br>request on your server. Return |
|
| Yes | Retry policy for reads that fail with HTTP 429, HTTP 503 or a network<br>error. On by default. Pass |
|
| Yes | The site's server key ( |
|
| No | UUID of your site, shown in the admin at the end of site creation as<br> |
LynkowClient
Interface
The content services, returned by the deprecated createLynkowClient.
Client, returned by createClient(), adds the commerce services,
locale management and events.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Pageview and event tracking. Browser only. |
|
| No | Global blocks: site-wide data such as the header navigation or the footer. |
|
| No | The "Made with Lynkow" badge. Browser only. |
|
| No | Content categories, as a list or a tree. |
|
| No | The cookie consent banner and the visitor's choices, built on |
|
| No | Published blog articles. |
|
| No | The cookie banner configuration and consent logging. |
|
| No | Browser behavior for rendered content, such as code-block copy buttons. |
|
| No | Form schemas and form submissions. |
|
| No | Global blocks: site-wide data such as the header navigation or the footer. |
|
| No | Legal documents such as the privacy policy or the terms of service. |
|
| No | Site pages such as the homepage or the contact page, distinct from blog articles. |
|
| No | Every renderable path, path resolution and redirect matching, for static generation. |
|
| No | Approved reviews, review submissions and the site's review settings. |
|
| No | Lynkow search, on the server or straight from the browser. |
|
| No | Plain-text SEO files: robots.txt, sitemap, llms.txt and page Markdown. |
|
| No | The site configuration: identity, locales and branding setting. |
|
| No | Content tags. |
LynkowConfig
Interface
Client options, extended by ClientConfig. Only siteId is required.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Base URL of the Lynkow API, for local development. A trailing slash is<br>removed. Defaults to |
|
| Yes | IP address of the buyer a server-side call is made for. Sent only together with<br> |
|
| Yes | Session token of a signed-in buyer, to restore the session after a reload<br>or on the server. Customer calls send it as |
|
| Yes |
|
|
| Yes | Locale sent with every request, one the site enables (e.g. |
|
| Yes | Publishable key ( |
|
| Yes | Called before each request with its method and URL, to add headers<br>computed for that request, such as the buyer IP read from the incoming<br>request on your server. Return |
|
| Yes | Retry policy for reads that fail with HTTP 429, HTTP 503 or a network<br>error. On by default. Pass |
|
| Yes | The site's server key ( |
|
| No | UUID of your site, shown in the admin at the end of site creation as<br> |
OutgoingRequest
Interface
The request a RequestHeadersProvider is called for.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The HTTP method, upper case: |
|
| No | The full URL, query string included. |
RequestHeadersProvider
TypeAlias
The requestHeaders option of LynkowConfig: returns the headers to
add to one request, or undefined for none.
type RequestHeadersProvider = (request: OutgoingRequest) => HeadersInit | undefined | Promise<HeadersInit | undefined>RetryConfig
Interface
Retry policy for transient failures, on by default. Reads (GET and the
text endpoints such as sitemap and robots) are retried on HTTP 429, HTTP 503
and network errors, with exponential backoff that honors Retry-After.
Writes are sent once. Pass retry: false to turn retries off.
In a Next.js server render, Next answers a request identical to an earlier
one with the first response unless it carries an abort signal, so a retry
there gets the same 429 or 503 back.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Base backoff in milliseconds when the response has no |
|
| Yes | Longest single wait in milliseconds, also capping |
|
| Yes | Retries after the first attempt. |
SiteConfig
Interface
The public site configuration returned by site.getConfig(). Global blocks are not part of it:
use blocks.siteConfig(). With a locale, name, description and logoUrl are served in that
language, else with the site default value, and the payload also carries locale,
requestedLocale and isFallback. Without a locale it has none of these three.
Extends: LocaleResolution
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Analytics consent configuration for the site. |
|
| No | Default locale code for the site (e.g. |
|
| No | Short site description for SEO and metadata.<br> |
|
| No | Primary domain without protocol (e.g. |
|
| No | Array of all enabled locale codes (e.g. |
|
| No | Full CDN URL to the site favicon.<br> |
|
| No | Full i18n configuration including locale display metadata,<br>language switcher settings, and automatic detection behavior.<br>See I18nConfig for details. |
|
| No | Site UUID. Same value as the |
|
| Yes |
|
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| No | Absolute URL of the site logo, in the served language when it has its own. |
|
| No | Site display name, as configured by the admin.<br>Used for site branding, document titles, etc.<br>Served in the request locale, or the default-locale value when that<br>locale has no override. |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| No | Whether the Lynkow branding badge should be displayed on the site.<br>This is the effective public value after the site's badge policy is applied. |
|
| No | IANA timezone identifier for the site (e.g. |