@cloudcannon/configuration-types 0.0.49 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudcannon-initial-site-settings.documentation.schema.json +116 -0
- package/dist/cloudcannon-initial-site-settings.schema.json +171 -0
- package/dist/cloudcannon-routing.documentation.schema.json +100 -0
- package/dist/cloudcannon-routing.schema.json +144 -0
- package/dist/documentation.json +51588 -50645
- package/package.json +1 -1
- package/src/index.ts +3 -24
- package/src/initial-site-settings.ts +82 -0
- package/src/routing.ts +92 -0
- package/src/ssg.ts +23 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Initial Site Settings",
|
|
4
|
+
"description": "Configuration for the `.cloudcannon/initial-site-settings.json` file. Defines build settings and site mode for new sites.",
|
|
5
|
+
"id": "type.InitialSiteSettings",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"mode": {
|
|
9
|
+
"description": "The mode for this site. `hosted` sites are built and hosted by CloudCannon. `headless` sites are not built or hosted.",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": [
|
|
12
|
+
"hosted",
|
|
13
|
+
"headless"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"ssg": {
|
|
17
|
+
"description": "The Static Site Generator used by this site.",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"hugo",
|
|
21
|
+
"jekyll",
|
|
22
|
+
"eleventy",
|
|
23
|
+
"astro",
|
|
24
|
+
"lume",
|
|
25
|
+
"mkdocs",
|
|
26
|
+
"nextjs",
|
|
27
|
+
"sveltekit",
|
|
28
|
+
"bridgetown",
|
|
29
|
+
"docusaurus",
|
|
30
|
+
"gatsby",
|
|
31
|
+
"hexo",
|
|
32
|
+
"nuxtjs",
|
|
33
|
+
"sphinx",
|
|
34
|
+
"static",
|
|
35
|
+
"legacy",
|
|
36
|
+
"other"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"build": {
|
|
40
|
+
"title": "Build",
|
|
41
|
+
"description": "Build configuration. Ignored when `mode` is `headless`.",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"install_command": {
|
|
45
|
+
"description": "Command to install dependencies before building.",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"build_command": {
|
|
49
|
+
"description": "Command to build the site.",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"output_path": {
|
|
53
|
+
"description": "Path to the built site output directory.",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"environment_variables": {
|
|
57
|
+
"description": "Environment variables to set during the build process.",
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"description": "A single environment variable as a key-value pair.",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"key": {
|
|
64
|
+
"description": "The name of the environment variable.",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"value": {
|
|
68
|
+
"description": "The value of the environment variable.",
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"key",
|
|
74
|
+
"value"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"preserve_output": {
|
|
80
|
+
"description": "Keep the output directory between builds instead of clearing it.",
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"include_git": {
|
|
84
|
+
"description": "Include the .git folder in the build environment.",
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"manually_configure_urls": {
|
|
88
|
+
"description": "Disable automatic URL configuration for the SSG.",
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"preserved_paths": {
|
|
92
|
+
"description": "Newline-separated list of paths to preserve between builds.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"node_version": {
|
|
96
|
+
"description": "Node.js version to use for the build.",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"ruby_version": {
|
|
100
|
+
"description": "Ruby version to use for the build.",
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"hugo_version": {
|
|
104
|
+
"description": "Hugo version to use for the build.",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"deno_version": {
|
|
108
|
+
"description": "Deno version to use for the build.",
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"additionalProperties": false
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"additionalProperties": false
|
|
116
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Initial Site Settings",
|
|
4
|
+
"description": "Configuration for the `.cloudcannon/initial-site-settings.json` file. Defines build settings and site mode for new sites.",
|
|
5
|
+
"$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-initial-site-settings.schema.json",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"mode": {
|
|
9
|
+
"description": "The mode for this site. `hosted` sites are built and hosted by CloudCannon. `headless` sites are not built or hosted.",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": [
|
|
12
|
+
"hosted",
|
|
13
|
+
"headless"
|
|
14
|
+
],
|
|
15
|
+
"documented": true,
|
|
16
|
+
"title": "mode",
|
|
17
|
+
"markdownDescription": "The mode for this site. `hosted` sites are built and hosted by CloudCannon. `headless` sites are not built or hosted."
|
|
18
|
+
},
|
|
19
|
+
"ssg": {
|
|
20
|
+
"description": "The Static Site Generator used by this site.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"hugo",
|
|
24
|
+
"jekyll",
|
|
25
|
+
"eleventy",
|
|
26
|
+
"astro",
|
|
27
|
+
"lume",
|
|
28
|
+
"mkdocs",
|
|
29
|
+
"nextjs",
|
|
30
|
+
"sveltekit",
|
|
31
|
+
"bridgetown",
|
|
32
|
+
"docusaurus",
|
|
33
|
+
"gatsby",
|
|
34
|
+
"hexo",
|
|
35
|
+
"nuxtjs",
|
|
36
|
+
"sphinx",
|
|
37
|
+
"static",
|
|
38
|
+
"legacy",
|
|
39
|
+
"other"
|
|
40
|
+
],
|
|
41
|
+
"documented": true,
|
|
42
|
+
"title": "ssg",
|
|
43
|
+
"markdownDescription": "The Static Site Generator used by this site."
|
|
44
|
+
},
|
|
45
|
+
"build": {
|
|
46
|
+
"title": "Build",
|
|
47
|
+
"description": "Build configuration. Ignored when `mode` is `headless`.",
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"install_command": {
|
|
51
|
+
"description": "Command to install dependencies before building.",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"documented": true,
|
|
54
|
+
"title": "install_command",
|
|
55
|
+
"markdownDescription": "Command to install dependencies before building."
|
|
56
|
+
},
|
|
57
|
+
"build_command": {
|
|
58
|
+
"description": "Command to build the site.",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"documented": true,
|
|
61
|
+
"title": "build_command",
|
|
62
|
+
"markdownDescription": "Command to build the site."
|
|
63
|
+
},
|
|
64
|
+
"output_path": {
|
|
65
|
+
"description": "Path to the built site output directory.",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"documented": true,
|
|
68
|
+
"title": "output_path",
|
|
69
|
+
"markdownDescription": "Path to the built site output directory."
|
|
70
|
+
},
|
|
71
|
+
"environment_variables": {
|
|
72
|
+
"description": "Environment variables to set during the build process.",
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"description": "A single environment variable as a key-value pair.",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"key": {
|
|
79
|
+
"description": "The name of the environment variable.",
|
|
80
|
+
"type": "string",
|
|
81
|
+
"documented": true,
|
|
82
|
+
"title": "key",
|
|
83
|
+
"markdownDescription": "The name of the environment variable."
|
|
84
|
+
},
|
|
85
|
+
"value": {
|
|
86
|
+
"description": "The value of the environment variable.",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"documented": true,
|
|
89
|
+
"title": "value",
|
|
90
|
+
"markdownDescription": "The value of the environment variable."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"key",
|
|
95
|
+
"value"
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"documented": true,
|
|
99
|
+
"title": "environment_variables[*]",
|
|
100
|
+
"markdownDescription": "A single environment variable as a key-value pair."
|
|
101
|
+
},
|
|
102
|
+
"documented": true,
|
|
103
|
+
"title": "environment_variables",
|
|
104
|
+
"markdownDescription": "Environment variables to set during the build process."
|
|
105
|
+
},
|
|
106
|
+
"preserve_output": {
|
|
107
|
+
"description": "Keep the output directory between builds instead of clearing it.",
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"documented": true,
|
|
110
|
+
"title": "preserve_output",
|
|
111
|
+
"markdownDescription": "Keep the output directory between builds instead of clearing it."
|
|
112
|
+
},
|
|
113
|
+
"include_git": {
|
|
114
|
+
"description": "Include the .git folder in the build environment.",
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"documented": true,
|
|
117
|
+
"title": "include_git",
|
|
118
|
+
"markdownDescription": "Include the .git folder in the build environment."
|
|
119
|
+
},
|
|
120
|
+
"manually_configure_urls": {
|
|
121
|
+
"description": "Disable automatic URL configuration for the SSG.",
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"documented": true,
|
|
124
|
+
"title": "manually_configure_urls",
|
|
125
|
+
"markdownDescription": "Disable automatic URL configuration for the SSG."
|
|
126
|
+
},
|
|
127
|
+
"preserved_paths": {
|
|
128
|
+
"description": "Newline-separated list of paths to preserve between builds.",
|
|
129
|
+
"type": "string",
|
|
130
|
+
"documented": true,
|
|
131
|
+
"title": "preserved_paths",
|
|
132
|
+
"markdownDescription": "Newline-separated list of paths to preserve between builds."
|
|
133
|
+
},
|
|
134
|
+
"node_version": {
|
|
135
|
+
"description": "Node.js version to use for the build.",
|
|
136
|
+
"type": "string",
|
|
137
|
+
"documented": true,
|
|
138
|
+
"title": "node_version",
|
|
139
|
+
"markdownDescription": "Node.js version to use for the build."
|
|
140
|
+
},
|
|
141
|
+
"ruby_version": {
|
|
142
|
+
"description": "Ruby version to use for the build.",
|
|
143
|
+
"type": "string",
|
|
144
|
+
"documented": true,
|
|
145
|
+
"title": "ruby_version",
|
|
146
|
+
"markdownDescription": "Ruby version to use for the build."
|
|
147
|
+
},
|
|
148
|
+
"hugo_version": {
|
|
149
|
+
"description": "Hugo version to use for the build.",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"documented": true,
|
|
152
|
+
"title": "hugo_version",
|
|
153
|
+
"markdownDescription": "Hugo version to use for the build."
|
|
154
|
+
},
|
|
155
|
+
"deno_version": {
|
|
156
|
+
"description": "Deno version to use for the build.",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"documented": true,
|
|
159
|
+
"title": "deno_version",
|
|
160
|
+
"markdownDescription": "Deno version to use for the build."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"documented": true,
|
|
165
|
+
"markdownDescription": "Build configuration. Ignored when `mode` is `headless`."
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"additionalProperties": false,
|
|
169
|
+
"documented": false,
|
|
170
|
+
"markdownDescription": "Configuration for the `.cloudcannon/initial-site-settings.json` file. Defines build settings and site mode for new sites."
|
|
171
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Routing",
|
|
4
|
+
"description": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site.",
|
|
5
|
+
"id": "type.Routing",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"routes": {
|
|
9
|
+
"description": "An array of route rules for redirects and rewrites. Rules are processed in order; the first matching rule is applied.",
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"description": "A single route rule for redirects or rewrites.",
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"from": {
|
|
16
|
+
"description": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns.",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"to": {
|
|
20
|
+
"description": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects.",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"status": {
|
|
24
|
+
"description": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site.",
|
|
25
|
+
"default": 301,
|
|
26
|
+
"type": "number",
|
|
27
|
+
"enum": [
|
|
28
|
+
200,
|
|
29
|
+
301,
|
|
30
|
+
302,
|
|
31
|
+
303,
|
|
32
|
+
307,
|
|
33
|
+
308,
|
|
34
|
+
404,
|
|
35
|
+
410
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"forced": {
|
|
39
|
+
"description": "When true, the redirect will be applied even if a file exists at the `from` path.",
|
|
40
|
+
"default": false,
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
},
|
|
43
|
+
"substitutions": {
|
|
44
|
+
"description": "When true, captured segments from glob patterns in `from` will be substituted into the `to` path.",
|
|
45
|
+
"default": true,
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"from",
|
|
51
|
+
"to"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"headers": {
|
|
57
|
+
"description": "An array of header rules to apply custom HTTP headers to responses.",
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"description": "A rule for applying custom HTTP headers to matching requests.",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"match": {
|
|
64
|
+
"description": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths.",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"headers": {
|
|
68
|
+
"description": "The list of HTTP headers to set for matching requests.",
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"description": "A single HTTP header name-value pair.",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"name": {
|
|
75
|
+
"description": "The name of the HTTP header to set.",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"value": {
|
|
79
|
+
"description": "The value of the HTTP header.",
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"name",
|
|
85
|
+
"value"
|
|
86
|
+
],
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"match",
|
|
93
|
+
"headers"
|
|
94
|
+
],
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Routing",
|
|
4
|
+
"description": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site.",
|
|
5
|
+
"$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-routing.schema.json",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"routes": {
|
|
9
|
+
"description": "An array of route rules for redirects and rewrites. Rules are processed in order; the first matching rule is applied.",
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"description": "A single route rule for redirects or rewrites.",
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"from": {
|
|
16
|
+
"description": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"documented": true,
|
|
19
|
+
"title": "from",
|
|
20
|
+
"markdownDescription": "The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns."
|
|
21
|
+
},
|
|
22
|
+
"to": {
|
|
23
|
+
"description": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects.",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"documented": true,
|
|
26
|
+
"title": "to",
|
|
27
|
+
"markdownDescription": "The destination path or URL for this route. Can be a relative path on the same site or an absolute URL for external redirects."
|
|
28
|
+
},
|
|
29
|
+
"status": {
|
|
30
|
+
"description": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site.",
|
|
31
|
+
"default": 301,
|
|
32
|
+
"type": "number",
|
|
33
|
+
"enum": [
|
|
34
|
+
200,
|
|
35
|
+
301,
|
|
36
|
+
302,
|
|
37
|
+
303,
|
|
38
|
+
307,
|
|
39
|
+
308,
|
|
40
|
+
404,
|
|
41
|
+
410
|
|
42
|
+
],
|
|
43
|
+
"documented": true,
|
|
44
|
+
"title": "status",
|
|
45
|
+
"markdownDescription": "The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, `to` must refer to a path on the same Site."
|
|
46
|
+
},
|
|
47
|
+
"forced": {
|
|
48
|
+
"description": "When true, the redirect will be applied even if a file exists at the `from` path.",
|
|
49
|
+
"default": false,
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"documented": true,
|
|
52
|
+
"title": "forced",
|
|
53
|
+
"markdownDescription": "When true, the redirect will be applied even if a file exists at the `from` path."
|
|
54
|
+
},
|
|
55
|
+
"substitutions": {
|
|
56
|
+
"description": "When true, captured segments from glob patterns in `from` will be substituted into the `to` path.",
|
|
57
|
+
"default": true,
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"documented": true,
|
|
60
|
+
"title": "substitutions",
|
|
61
|
+
"markdownDescription": "When true, captured segments from glob patterns in `from` will be substituted into the `to` path."
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"from",
|
|
66
|
+
"to"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"documented": true,
|
|
70
|
+
"title": "routes[*]",
|
|
71
|
+
"markdownDescription": "A single route rule for redirects or rewrites."
|
|
72
|
+
},
|
|
73
|
+
"documented": true,
|
|
74
|
+
"title": "routes",
|
|
75
|
+
"markdownDescription": "An array of route rules for redirects and rewrites. Rules are processed in order; the first matching rule is applied."
|
|
76
|
+
},
|
|
77
|
+
"headers": {
|
|
78
|
+
"description": "An array of header rules to apply custom HTTP headers to responses.",
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"description": "A rule for applying custom HTTP headers to matching requests.",
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"match": {
|
|
85
|
+
"description": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths.",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"documented": true,
|
|
88
|
+
"title": "match",
|
|
89
|
+
"markdownDescription": "A glob pattern to match request paths against. Headers will be applied to responses for matching paths."
|
|
90
|
+
},
|
|
91
|
+
"headers": {
|
|
92
|
+
"description": "The list of HTTP headers to set for matching requests.",
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"description": "A single HTTP header name-value pair.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"name": {
|
|
99
|
+
"description": "The name of the HTTP header to set.",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"documented": true,
|
|
102
|
+
"title": "name",
|
|
103
|
+
"markdownDescription": "The name of the HTTP header to set."
|
|
104
|
+
},
|
|
105
|
+
"value": {
|
|
106
|
+
"description": "The value of the HTTP header.",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"documented": true,
|
|
109
|
+
"title": "value",
|
|
110
|
+
"markdownDescription": "The value of the HTTP header."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"name",
|
|
115
|
+
"value"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"documented": true,
|
|
119
|
+
"title": "headers[*]",
|
|
120
|
+
"markdownDescription": "A single HTTP header name-value pair."
|
|
121
|
+
},
|
|
122
|
+
"documented": true,
|
|
123
|
+
"title": "headers",
|
|
124
|
+
"markdownDescription": "The list of HTTP headers to set for matching requests."
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"match",
|
|
129
|
+
"headers"
|
|
130
|
+
],
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"documented": true,
|
|
133
|
+
"title": "headers[*]",
|
|
134
|
+
"markdownDescription": "A rule for applying custom HTTP headers to matching requests."
|
|
135
|
+
},
|
|
136
|
+
"documented": true,
|
|
137
|
+
"title": "headers",
|
|
138
|
+
"markdownDescription": "An array of header rules to apply custom HTTP headers to responses."
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"documented": false,
|
|
143
|
+
"markdownDescription": "Configuration for the `.cloudcannon/routing.json` file. Defines redirects, rewrites, and custom HTTP headers for your site."
|
|
144
|
+
}
|