-
Notifications
You must be signed in to change notification settings - Fork 483
/
schema.json
50 lines (50 loc) · 1.28 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Prerender Target",
"type": "object",
"properties": {
"browserTarget": {
"type": "string",
"description": "Target to build.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"serverTarget": {
"type": "string",
"description": "Server target to use for prerendering the app.",
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
},
"routesFile": {
"type": "string",
"description": "The path to a file containing routes separated by newlines."
},
"routes": {
"type": "array",
"description": "The routes to render.",
"items": {
"minItems": 1,
"type": "string",
"uniqueItems": true
},
"default": []
},
"guessRoutes": {
"type": "boolean",
"description": "Whether or not the builder should extract routes and guess which paths to render.",
"default": true
},
"numProcesses": {
"type": "number",
"description": "The number of cpus to use. Defaults to all but one.",
"minimum": 1
}
},
"required": [
"browserTarget",
"serverTarget"
],
"anyOf": [
{ "required": ["routes"] },
{ "required": ["routesFile"] }
],
"additionalProperties": false
}