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

Function assertDevProxyConfig

packages/dev-proxy/src/config.ts:95–101  ·  view source on GitHub ↗
(config: unknown)

Source from the content-addressed store, hash-verified

93 typeof value === 'object' && value !== null
94
95export function assertDevProxyConfig(config: unknown): asserts config is DevProxyConfig {
96 if (!isRecord(config))
97 throw new Error('Dev proxy config must export an object.')
98
99 if (!Array.isArray(config.routes))
100 throw new Error('Dev proxy config must include a routes array.')
101}
102
103const resolveDotenvOptions = (
104 envFile: DevProxyConfigLoadOptions['envFile'],

Callers 3

reloadFunction · 0.90
loadDevProxyConfigFunction · 0.85
watchDevProxyConfigFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected