Skip to content

remix/cli · Function

View Source

loadConfig

Summary

Loads the nearest Remix project configuration or an explicitly selected config file.

Signature

function loadConfig(from: string | URL): Promise<RemixConfig>

Parameters

from

A config file or directory from which to search upward for remix.json. Defaults to process.cwd().

Returns

The validated Remix project configuration, or an empty object when no config is found.