[cli] Add vercel.json validation to vercel build (#8622)

We were doing this validation in `vercel dev` but not `vercel build`.

This PR adds `vercel.json` validation to `vercel build` too.

Note I am calling this a patch because invalid `vercel.json` was already failing when passed to the API so this allows a nice error message earlier in the process.
This commit is contained in:
Steven
2022-09-23 16:33:28 -04:00
committed by GitHub
parent 7d6e56670f
commit 43499b13d8
9 changed files with 153 additions and 161 deletions

View File

@@ -1,4 +1,4 @@
import { validateConfig } from '../../../../src/util/dev/validate';
import { validateConfig } from '../../../../src/util/validate-config';
describe('validateConfig', () => {
it('should not error with empty config', async () => {