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, and this page is available as Markdown at /next/zh/api/packages/rspeedy/interfaces/ConfigParams.md.
Lynx
  • 简体中文
  • 接口: ConfigParams

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

    属性

    command

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

    Rspeedy 的 CLI 命令。

    默认值

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

    备注

    可选值:

    • 'build'

    • 'dev'

    • 'inspect'

    • 'preview'


    env

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

    process.env['NODE_ENV'] 的值

    默认值

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

    备注

    常见的值包括(不限于):

    • 'production'

    • 'development'

    • 'test'

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。