diff --git a/docs/code-examples/sandbox/index.js b/docs/code-examples/sandbox/index.js index 5c0ae86..f0f3c52 100644 --- a/docs/code-examples/sandbox/index.js +++ b/docs/code-examples/sandbox/index.js @@ -5,7 +5,7 @@ const cdn = await CdnClient.create({ }); const result = await cdn.fetch({ - files: cdn.metafile.files, + files: cdn.metafile.files[0], locales: ['en', 'de'], }); diff --git a/docs/reference/client-api.md b/docs/reference/client-api.md index 8869768..3c1f2b6 100644 --- a/docs/reference/client-api.md +++ b/docs/reference/client-api.md @@ -182,7 +182,7 @@ Refresh the [metafile](../get-started/metafile.md). --- -### metafile.switch(options, config?) +### metafile.switch(options) Switch to a different [metafile](../get-started/metafile.md). @@ -193,7 +193,6 @@ Switch to a different [metafile](../get-started/metafile.md). | Name | Type | Description | |----------------------------------------------|-----------------------------------------------------------------|:----------------------| | options | [`CdnClientOptions`](types.md#cdnclientoptions) | CDN client options. | -| config | [`CreateAxiosDefaults`](https://axios-http.com/docs/req_config) | Axios request config. | | Type | |:----------------|