> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: mergeRspeedyConfig()

> **mergeRspeedyConfig**(...`configs`: [`Config`](/next/api/packages/rspeedy/interfaces/Config.md)\[]): [`Config`](/next/api/packages/rspeedy/interfaces/Config.md)

Merge multiple Rspeedy configuration objects.

## Parameters

| Parameter    | Type                                                           | Description                                 |
| ------------ | -------------------------------------------------------------- | ------------------------------------------- |
| ...`configs` | [`Config`](/next/api/packages/rspeedy/interfaces/Config.md)\[] | The Rspeedy configuration objects to merge. |

## Returns

[`Config`](/next/api/packages/rspeedy/interfaces/Config.md)

The merged Rspeedy configuration object.

## Example

```ts
import { mergeRspeedyConfig } from '@lynx-js/rspeedy';

const config1 = {
  dev: {
    writeToDisk: false,
  },
};
const config2 = {
  dev: {
    writeToDisk: true,
  },
};

const mergedConfig = mergeRspeedyConfig(config1, config2);

console.log(mergedConfig); // { dev: { writeToDisk: true } }
```

## Remarks

This is actually an alias of [mergeRsbuildConfig](https://rsbuild.rs/api/javascript-api/core#mergersbuildconfig).
