(
configPath = DEFAULT_CONFIG_FILE,
cwd = process.cwd(),
options: DevProxyConfigLoadOptions = {},
)
| 135 | } |
| 136 | |
| 137 | export const loadDevProxyConfig = async ( |
| 138 | configPath = DEFAULT_CONFIG_FILE, |
| 139 | cwd = process.cwd(), |
| 140 | options: DevProxyConfigLoadOptions = {}, |
| 141 | ): Promise<DevProxyConfig> => { |
| 142 | const { config: loadedConfig } = await loadConfig({ |
| 143 | ...createC12ConfigOptions(configPath, cwd, options), |
| 144 | }) |
| 145 | |
| 146 | assertDevProxyConfig(loadedConfig) |
| 147 | return loadedConfig |
| 148 | } |
| 149 | |
| 150 | export const watchDevProxyConfig = async ( |
| 151 | configPath = DEFAULT_CONFIG_FILE, |
no test coverage detected