(config: unknown)
| 93 | typeof value === 'object' && value !== null |
| 94 | |
| 95 | export 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 | |
| 103 | const resolveDotenvOptions = ( |
| 104 | envFile: DevProxyConfigLoadOptions['envFile'], |
no test coverage detected