For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/node/config/functions/configPath.md.
  • 简体中文
  • Function: configPath()

    function configPath(runtimeRoot: string, name: ConfigName): string;

    Defined in: node/config/index.ts:332

    获取指定配置文件的完整绝对路径(<runtimeRoot>/configs/<name>)。

    Parameters

    ParameterTypeDescription
    runtimeRootstring运行时根目录。
    nameConfigName配置文件名。

    Returns

    string

    配置文件绝对路径。