Skip to content

Commit

Permalink
馃摎 docs: Update sandbox example, remove wrong options from reference
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Mar 15, 2024
1 parent 89ed1ac commit f5f89d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/code-examples/sandbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});

Expand Down
3 changes: 1 addition & 2 deletions docs/reference/client-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Refresh the [metafile](../get-started/metafile.md).

---

### metafile.switch(options, config?) <Badge type="info" text="async function" />
### metafile.switch(options) <Badge type="info" text="async function" />

Switch to a different [metafile](../get-started/metafile.md).

Expand All @@ -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 <Badge type="info" text="optional" /> | [`CreateAxiosDefaults`](https://axios-http.com/docs/req_config) | Axios request config. |

| Type |
|:----------------|
Expand Down

0 comments on commit f5f89d3

Please sign in to comment.