Allow JSON schema property in `serve.json`
Author: chancesCreated Sep 27, 2026Updated Sep 27, 2026
Description
serve.json is validated against @zeit/schemas/deployment/config-static.js, which sets additionalProperties: false and does not include $schema in its properties list. Any serve.json with a $schema key fails at startup:
The configuration you provided is invalid: must NOT have additional properties
{"additionalProperty":"$schema"}Repro:
- Create
serve.json: { "$schema": "https://github.com/chances/schemastore/raw/refs/heads/vercel-serve/src/schemas/json/serve.json", "public": "app/" } - Run
npx serve - Server exits with the error above.
Expected: $schema (a standard JSON Schema convention for editor tooling) should be allowed in config-static.js's properties, same as Vercel's own vercel.json schema does for vercel.json.
Environment
Node/npx on Windows.
Library version
v14.2.6
Node version
v24.19.0
Source: vercel/serve