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

Method validateVercelConfig

packages/cli/src/util/dev/server.ts:913–926  ·  view source on GitHub ↗
(config: VercelConfig)

Source from the content-addressed store, hash-verified

911 }
912
913 async validateVercelConfig(config: VercelConfig): Promise<void> {
914 if (config.version === 1) {
915 output.error('Cannot run `version: 1` projects.');
916 await this.exit(1);
917 return;
918 }
919
920 const error = validateConfig(config);
921
922 if (error) {
923 output.prettyError(error);
924 await this.exit(1);
925 }
926 }
927
928 validateEnvConfig(type: string, env: Env = {}, localEnv: Env = {}): Env {
929 // Validate if there are any missing env vars defined in `vercel.json`,

Callers 1

_getVercelConfigMethod · 0.95

Calls 3

exitMethod · 0.95
validateConfigFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected