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

# output.distPath

> `optional` **distPath?**: `DistPathConfig`

:::info Lynx default override
This is an Rsbuild option whose default is overridden by `pluginLynx`. The default shown below applies when using the plugin. Set this option at the top level of `rsbuild.config.ts`; an explicit value takes precedence.

[See the Rsbuild reference for the full option behavior](https://rsbuild.rs/config/output/dist-path).
:::

Set the directory of the dist files.

## Default Value

Uses Rsbuild's default distPath configuration with `root: 'dist'`.

## Remarks

More options can be found at [Rsbuild - distPath](https://rsbuild.rs/config/output/dist-path).

## Example

Use `output` instead of `dist`(the default value):

```js
import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  output: {
    distPath: {
      root: './output',
    },
  },
})
```
