MCPcopy Create free account
hub / github.com/vercel/vercel / tryValidateOrExit

Method tryValidateOrExit

packages/cli/src/util/dev/server.ts:901–911  ·  view source on GitHub ↗
(
    config: VercelConfig,
    validate: (c: VercelConfig) => string | null
  )

Source from the content-addressed store, hash-verified

899 }
900
901 async tryValidateOrExit(
902 config: VercelConfig,
903 validate: (c: VercelConfig) => string | null
904 ): Promise<void> {
905 const message = validate(config);
906
907 if (message) {
908 output.error(message);
909 await this.exit(1);
910 }
911 }
912
913 async validateVercelConfig(config: VercelConfig): Promise<void> {
914 if (config.version === 1) {

Callers

nothing calls this directly

Calls 3

exitMethod · 0.95
errorMethod · 0.80
validateFunction · 0.50

Tested by

no test coverage detected