MCPcopy Create free account
hub / github.com/langgenius/dify / loadDevProxyConfig

Function loadDevProxyConfig

packages/dev-proxy/src/config.ts:137–148  ·  view source on GitHub ↗
(
  configPath = DEFAULT_CONFIG_FILE,
  cwd = process.cwd(),
  options: DevProxyConfigLoadOptions = {},
)

Source from the content-addressed store, hash-verified

135}
136
137export 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
150export const watchDevProxyConfig = async (
151 configPath = DEFAULT_CONFIG_FILE,

Callers 2

config.spec.tsFile · 0.90
mainFunction · 0.90

Calls 3

loadConfigFunction · 0.85
createC12ConfigOptionsFunction · 0.85
assertDevProxyConfigFunction · 0.85

Tested by

no test coverage detected