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

# Interface: ConfigParams

`lynx.config.js` 导出的函数的参数。

## Properties

### command

> **command**: `string` & `Record`\<`never`, `never`> | `"dev"` | `"build"` | `"inspect"` | `"preview"`

Rspeedy 的 CLI 命令。

#### Default Value

当 `loadConfig` 执行配置函数时，该值为 `process.argv[2] ?? 'build'`

#### Remarks

可选值：

- `'build'`

- `'dev'`

- `'inspect'`

- `'preview'`

***

### env

> **env**: `string` & `Record`\<`never`, `never`> | `"test"` | `"development"` | `"production"`

`process.env['NODE_ENV']` 的值

#### Default Value

当 `loadConfig` 执行配置函数时，该值为 `process.env.NODE_ENV ?? 'production'`

#### Remarks

常见的值包括（不限于）：

- `'production'`

- `'development'`

- `'test'`
