Home > @uniformdev/canvas-contentful > AddClientArgs

AddClientArgs interface

Signature:

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

client

</td><td>

</td><td>

ContentfulClientApi

</td><td>

The Contentful client instance to use when fetching published data

</td></tr> <tr><td>

previewClient?

</td><td>

</td><td>

ContentfulClientApi

</td><td>

(Optional) The Contentful client instance to use when fetching preview data. If the preview client is not passed, it defaults to the client.

</td></tr> <tr><td>

source?

</td><td>

</td><td>

string

</td><td>

(Optional) The Contentful source public ID that this client maps to in the composition data. This is used to enable multiple Contentful spaces/environments as data sources. If unspecified, the client will be the default source that is used when no source public ID is in the data, or the source ID is 'default'.

</td></tr> </tbody></table>