# setConfig

[**@venuecms/sdk-next**](https://docs.venuecms.com/developers/sdk-next/reference/index)

***

## Function: setConfig()

```ts
function setConfig(params): void
```

Defined in: [sdk/dist/index.d.mts:850](https://github.com/venuecms/sdk/blob/fccd7a6c5d53db66655878a682d412275fbffc69/packages/sdk/dist/index.d.mts#L850)

Allows you to pass in the siteKey and API key manually in case you want it to be dynamically set. If you don't use this function, the SDK will default to using process.env.VENUE\_SITE\_KEY and process.env.VENUE\_API\_KEY instead.

### Parameters

| Parameter         | Type                                                             |
| ----------------- | ---------------------------------------------------------------- |
| `params`          | { `options`: `Partial`<`RequestOptions`>; `siteKey`: `string`; } |
| `params.options`? | `Partial`<`RequestOptions`>                                      |
| `params.siteKey`  | `string`                                                         |

### Returns

`void`
