Last active
March 9, 2021 01:25
-
-
Save JuanM04/9d472a39ca25106a71cb1ab5a5847d5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$id": "https://vercel.com/docs/configuration", | |
"$schema": "https://json-schema.org/draft-07/schema", | |
"title": "Vercel", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"functions": { | |
"$id": "project/functions", | |
"type": "object", | |
"description": "More info at https://vercel.com/docs/configuration#project/functions", | |
"patternProperties": { | |
".+": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"memory": { | |
"type": "number", | |
"default": 1024 | |
}, | |
"maxDuration": { | |
"type": "number", | |
"default": 10 | |
}, | |
"runtime": { | |
"type": "string" | |
}, | |
"includeFiles": { | |
"type": "string" | |
}, | |
"excludeFiles": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"regions": { | |
"$id": "project/regions", | |
"description": "More info at https://vercel.com/docs/configuration#project/regions", | |
"oneOf": [ | |
{ | |
"type": "string", | |
"const": "all" | |
}, | |
{ | |
"type": "array", | |
"minItems": 1, | |
"uniqueItems": true, | |
"additionalItems": false, | |
"items": { | |
"type": "string", | |
"oneOf": [ | |
{ "const": "arn", "description": "Stockholm, Sweden" }, | |
{ "const": "bom", "description": "Mumbai, India" }, | |
{ "const": "bru", "description": "Brussels, Belgium, Europe" }, | |
{ "const": "cdg", "description": "Paris, France, Europe" }, | |
{ "const": "cle", "description": "Cleveland, East US" }, | |
{ "const": "dub", "description": "Dublin, Ireland" }, | |
{ "const": "gru", "description": "São Paulo, Brazil" }, | |
{ "const": "hkg", "description": "Hong Kong" }, | |
{ "const": "hnd", "description": "Tokyo, Japan" }, | |
{ "const": "iad", "description": "Washington DC, USA" }, | |
{ "const": "icn", "description": "Seoul, South Korea" }, | |
{ "const": "lhr", "description": "London, UK" }, | |
{ "const": "pdx", "description": "Portland, West US" }, | |
{ "const": "sfo", "description": "San Francisco, CA, USA" }, | |
{ "const": "sin", "description": "Singapore" }, | |
{ "const": "syd", "description": "Sydney, Australia" } | |
] | |
} | |
} | |
] | |
}, | |
"public": { | |
"$id": "project/public", | |
"description": "More info at https://vercel.com/docs/configuration#project/public", | |
"type": "boolean", | |
"default": false | |
}, | |
"cleanUrls": { | |
"$id": "project/clean-urls", | |
"description": "More info at https://vercel.com/docs/configuration#project/clean-urls", | |
"type": "boolean", | |
"default": false | |
}, | |
"trailingSlash": { | |
"$id": "project/trailing-slash", | |
"description": "More info at https://vercel.com/docs/configuration#project/trailing-slash", | |
"type": "boolean" | |
}, | |
"redirects": { | |
"$id": "project/redirects", | |
"type": "array", | |
"description": "More info at https://vercel.com/docs/configuration#project/redirects", | |
"items": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": ["source", "destination"], | |
"properties": { | |
"source": { | |
"type": "string" | |
}, | |
"destination": { | |
"type": "string" | |
}, | |
"permanent": { | |
"type": "boolean", | |
"default": true | |
}, | |
"statusCode": { | |
"type": "number" | |
} | |
} | |
} | |
}, | |
"rewrites": { | |
"$id": "project/rewrites", | |
"type": "array", | |
"description": "More info at https://vercel.com/docs/configuration#project/rewrites", | |
"items": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": ["source", "destination"], | |
"properties": { | |
"source": { | |
"type": "string" | |
}, | |
"destination": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"headers": { | |
"$id": "project/headers", | |
"type": "array", | |
"description": "More info at https://vercel.com/docs/configuration#project/headers", | |
"additionalItems": false, | |
"items": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": ["source", "headers"], | |
"properties": { | |
"source": { | |
"type": "string" | |
}, | |
"headers": { | |
"type": "array", | |
"additionalItems": true, | |
"items": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": ["key", "value"], | |
"properties": { | |
"key": { | |
"type": "string" | |
}, | |
"value": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"github": { | |
"$id": "git", | |
"description": "https://vercel.com/docs/configuration#git", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"default": true | |
}, | |
"autoAlias": { | |
"type": "boolean", | |
"default": true | |
}, | |
"silent": { | |
"type": "boolean", | |
"default": false | |
}, | |
"autoJobCancelation": { | |
"type": "boolean", | |
"default": true | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"json.schemas": [ | |
{ | |
"fileMatch": ["vercel.json"], | |
"url": "https://gist.githubusercontent.com/JuanM04/9d472a39ca25106a71cb1ab5a5847d5d/raw/vercel.schema.json" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment