(config: VercelConfig)
| 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`, |
no test coverage detected