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

# performance.rsdoctor

- **Type:**

```ts
type RsdoctorConfig =
  | boolean
  | {
      enabled?: boolean;
      disableClientServer?: boolean;
    };
```

- **Default:** `undefined`, Rsdoctor is disabled unless this option is configured.

Configure Rsdoctor diagnostics in Modern.js build. Set this option to `true` to enable Rsdoctor:

```ts title="modern.config.ts"
export default defineConfig({
  performance: {
    rsdoctor: true,
  },
});
```

You can also use object form. When an object is provided, Rsdoctor is enabled unless `enabled` is set to `false`:

```ts title="modern.config.ts"
export default defineConfig({
  performance: {
    rsdoctor: {
      enabled: true,
    },
  },
});
```

To disable Rsdoctor after enabling it in shared config, set `rsdoctor` to `false` or set `enabled` to `false`.
