Skip to content

Allow removing default headers #826

Open
vercel/schemas
#89

Description

@jakearchibald

Description

I think this is a regression, as it was added in vercel/serve-handler#45, and there appears to be tests for it.

If I try to launch serve with the following config:

{
  "headers": [
    {
      "source": "**/*.*",
      "headers": [
        {
          "key": "Content-Disposition",
          "value": null
        }
      ]
    }
  ]
}

It fails with:

ERROR  The configuration you provided is invalid:
must be string
{"type":"string"}

Library version

14.2.4

Node version

v22.18.0

Activity

  1. jakearchibald commented on Sep 2, 2025

    @jakearchibald
    Author

    https://github.com/vercel/schemas/blob/f78f1110a2c2d06d8ecc05999a8cd3fccd06670b/deployment/config-static.js#L49 here's the issue. I'm not sure what the format is, but that needs to allow null.

  2. jakearchibald commented on Sep 2, 2025

    @jakearchibald
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions