Skip to content

Commit 96561eb

Browse files
committed
fix: Add preview reference to the createClient
1 parent d217054 commit 96561eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contentful.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import createCdaApi from './create-cda-api'
1616
* @prop {string} params.space - Space ID
1717
* @prop {string} params.accessToken - Contentful CDA Access Token
1818
* @prop {boolean=} params.insecure - Requests will be made over http instead of the default https (default: true)
19-
* @prop {string=} params.host - API host (default: cda.contentful.com)
19+
* @prop {string=} params.host - API host (default: cda.contentful.com). Also usable with preview.contentful.com.
2020
* @prop {Object=} params.agent - Optional Node.js HTTP agent for proxying (see <a href="https://nodejs.org/api/http.html#http_class_http_agent">Node.js docs</a> and <a href="https://www.npmjs.com/package/https-proxy-agent">https-proxy-agent</a>)
2121
* @prop {Object=} params.headers - Optional additional headers
2222
* @returns {CDAClient.ClientAPI}

0 commit comments

Comments
 (0)