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

    function configDir(runtimeRoot: string): string;

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

    获取配置文件存放目录路径(<runtimeRoot>/configs)。

    Parameters

    ParameterTypeDescription
    runtimeRootstring运行时根目录。

    Returns

    string

    配置目录绝对路径。