@adobe/helix-config 3.13.2 → 4.1.0

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +5 -15
  3. package/src/config-view.js +1 -11
  4. package/src/utils.js +0 -36
  5. package/src/schemas/access-admin.schema.cjs +0 -12
  6. package/src/schemas/access-admin.schema.json +0 -57
  7. package/src/schemas/access-site.schema.cjs +0 -12
  8. package/src/schemas/access-site.schema.json +0 -24
  9. package/src/schemas/access.schema.cjs +0 -12
  10. package/src/schemas/access.schema.json +0 -22
  11. package/src/schemas/cdn-prod-akamai.schema.cjs +0 -12
  12. package/src/schemas/cdn-prod-akamai.schema.json +0 -45
  13. package/src/schemas/cdn-prod-cloudflare.schema.cjs +0 -12
  14. package/src/schemas/cdn-prod-cloudflare.schema.json +0 -41
  15. package/src/schemas/cdn-prod-cloudfront.schema.cjs +0 -12
  16. package/src/schemas/cdn-prod-cloudfront.schema.json +0 -41
  17. package/src/schemas/cdn-prod-fastly.schema.cjs +0 -12
  18. package/src/schemas/cdn-prod-fastly.schema.json +0 -40
  19. package/src/schemas/cdn-prod-managed.schema.cjs +0 -12
  20. package/src/schemas/cdn-prod-managed.schema.json +0 -29
  21. package/src/schemas/cdn.schema.cjs +0 -12
  22. package/src/schemas/cdn.schema.json +0 -75
  23. package/src/schemas/code.schema.cjs +0 -12
  24. package/src/schemas/code.schema.json +0 -43
  25. package/src/schemas/common.schema.cjs +0 -12
  26. package/src/schemas/common.schema.json +0 -27
  27. package/src/schemas/content-source-google.schema.cjs +0 -12
  28. package/src/schemas/content-source-google.schema.json +0 -26
  29. package/src/schemas/content-source-markup.schema.cjs +0 -12
  30. package/src/schemas/content-source-markup.schema.json +0 -24
  31. package/src/schemas/content-source-onedrive.schema.cjs +0 -12
  32. package/src/schemas/content-source-onedrive.schema.json +0 -28
  33. package/src/schemas/content.schema.cjs +0 -12
  34. package/src/schemas/content.schema.json +0 -30
  35. package/src/schemas/folders.schema.cjs +0 -12
  36. package/src/schemas/folders.schema.json +0 -13
  37. package/src/schemas/groups.schema.cjs +0 -12
  38. package/src/schemas/groups.schema.json +0 -39
  39. package/src/schemas/headers.schema.cjs +0 -12
  40. package/src/schemas/headers.schema.json +0 -16
  41. package/src/schemas/metadata-source.schema.cjs +0 -12
  42. package/src/schemas/metadata-source.schema.json +0 -16
  43. package/src/schemas/org.schema.cjs +0 -12
  44. package/src/schemas/org.schema.json +0 -26
  45. package/src/schemas/profile.schema.cjs +0 -12
  46. package/src/schemas/profile.schema.json +0 -57
  47. package/src/schemas/profiles.schema.cjs +0 -12
  48. package/src/schemas/profiles.schema.json +0 -28
  49. package/src/schemas/public.schema.cjs +0 -12
  50. package/src/schemas/public.schema.json +0 -8
  51. package/src/schemas/robots.schema.cjs +0 -12
  52. package/src/schemas/robots.schema.json +0 -13
  53. package/src/schemas/sidekick.schema.cjs +0 -12
  54. package/src/schemas/sidekick.schema.json +0 -112
  55. package/src/schemas/site.schema.cjs +0 -12
  56. package/src/schemas/site.schema.json +0 -74
  57. package/src/schemas/sites.schema.cjs +0 -12
  58. package/src/schemas/sites.schema.json +0 -28
  59. package/src/schemas/tokens.schema.cjs +0 -12
  60. package/src/schemas/tokens.schema.json +0 -28
  61. package/src/schemas/user.schema.cjs +0 -12
  62. package/src/schemas/user.schema.json +0 -42
  63. package/src/schemas/users.schema.cjs +0 -12
  64. package/src/schemas/users.schema.json +0 -10
  65. package/src/storage/ValidationError.js +0 -95
  66. package/src/storage/config-store.js +0 -359
  67. package/src/storage/config-validator.js +0 -112
  68. package/src/storage/index.js +0 -14
  69. package/src/storage/status-code-error.js +0 -22
  70. package/src/storage/utils.js +0 -157
  71. package/types/org-config.d.ts +0 -51
  72. package/types/profile-config.d.ts +0 -368
  73. package/types/site-config.d.ts +0 -375
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [4.1.0](https://github.com/adobe/helix-config/compare/v4.0.0...v4.1.0) (2024-08-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * remove head.html existence check ([#166](https://github.com/adobe/helix-config/issues/166)) ([079916f](https://github.com/adobe/helix-config/commit/079916fe2b98f40b5fd4e8472c4ea8f964872230)), closes [#163](https://github.com/adobe/helix-config/issues/163)
7
+
8
+ # [4.0.0](https://github.com/adobe/helix-config/compare/v3.13.2...v4.0.0) (2024-08-15)
9
+
10
+
11
+ ### Features
12
+
13
+ * (re)move storage parts to helix-config-storage ([#165](https://github.com/adobe/helix-config/issues/165)) ([59732ed](https://github.com/adobe/helix-config/commit/59732edea8372641fcecb79684dab049ac956f69))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * the /storage package was moved to helix-config-storage
19
+
1
20
  ## [3.13.2](https://github.com/adobe/helix-config/compare/v3.13.1...v3.13.2) (2024-08-15)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,18 +1,16 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "3.13.2",
3
+ "version": "4.1.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
7
7
  "exports": {
8
- ".": "./src/index.js",
9
- "./storage": "./src/storage/index.js"
8
+ ".": "./src/index.js"
10
9
  },
11
10
  "type": "module",
12
11
  "scripts": {
13
12
  "test": "c8 mocha --spec 'test/**/*.test.js'",
14
- "lint": "eslint . && ./validate-json-schemas.sh",
15
- "docs:types": "node ./test/dev/generate-types.js",
13
+ "lint": "eslint .",
16
14
  "semantic-release": "semantic-release",
17
15
  "semantic-release-dry": "semantic-release --dry-run --branches $CI_BRANCH",
18
16
  "prepare": "husky"
@@ -41,19 +39,16 @@
41
39
  "@semantic-release/changelog": "6.0.3",
42
40
  "@semantic-release/git": "10.0.1",
43
41
  "@semantic-release/npm": "12.0.1",
44
- "ajv-cli": "5.0.0",
45
42
  "c8": "10.1.2",
46
43
  "eslint": "8.57.0",
47
44
  "husky": "9.1.4",
48
- "json-schema-to-typescript": "15.0.0",
49
45
  "junit-report-builder": "5.0.0",
50
46
  "lint-staged": "15.2.8",
51
47
  "mocha": "10.7.3",
52
48
  "mocha-multi-reporters": "1.5.1",
53
49
  "mocha-suppress-logs": "0.5.1",
54
50
  "nock": "13.5.4",
55
- "semantic-release": "24.0.0",
56
- "xml2js": "0.6.2"
51
+ "semantic-release": "24.0.0"
57
52
  },
58
53
  "lint-staged": {
59
54
  "*.js": "eslint",
@@ -62,11 +57,6 @@
62
57
  "dependencies": {
63
58
  "@adobe/fetch": "4.1.8",
64
59
  "@adobe/helix-shared-config": "10.6.5",
65
- "@adobe/helix-shared-git": "3.0.13",
66
- "@adobe/helix-shared-storage": "1.0.5",
67
- "@adobe/helix-shared-utils": "3.0.2",
68
- "ajv": "8.17.1",
69
- "ajv-formats": "3.0.1",
70
- "jose": "5.6.3"
60
+ "@adobe/helix-shared-utils": "3.0.2"
71
61
  }
72
62
  }
@@ -442,17 +442,6 @@ export async function getConfigResponse(ctx, opts) {
442
442
  }
443
443
  }
444
444
 
445
- if (!config.head?.html && (opts.scope === SCOPE_PIPELINE || opts.scope === SCOPE_DELIVERY)) {
446
- // validate that ref exists in code-bus
447
- return new PipelineResponse('', {
448
- status: 404,
449
- headers: {
450
- 'x-error': 'ref does not exist (no head.html)',
451
- ...surrogateHeaders,
452
- },
453
- });
454
- }
455
-
456
445
  if (opts.scope === SCOPE_DELIVERY) {
457
446
  return new PipelineResponse('', {
458
447
  headers: {
@@ -524,6 +513,7 @@ export async function getConfigResponse(ctx, opts) {
524
513
  public: config.public,
525
514
  robots: config.robots,
526
515
  access: config.access,
516
+ legacy: config.legacy,
527
517
  };
528
518
  return new PipelineResponse(JSON.stringify(pipelineConfig, null, 2), {
529
519
  headers: {
package/src/utils.js CHANGED
@@ -39,39 +39,3 @@ export function deepGetOrCreate(obj, path, create = false) {
39
39
  }
40
40
  return o;
41
41
  }
42
-
43
- /**
44
- * Sets the property addressed by the given path in the object.
45
- * @param {object} obj the object to search
46
- * @param {string|string[]} path the path or path segments
47
- * @param {*} value the value to set on the object
48
- * @returns {object} the passed in `obj`
49
- */
50
- export function deepPut(obj, path, value) {
51
- const parts = Array.isArray(path) ? path : path.split('/');
52
- const last = parts.pop();
53
- const parent = parts.reduce((o, prop) => {
54
- if (!(prop in o)) {
55
- // eslint-disable-next-line no-param-reassign
56
- o[prop] = {};
57
- }
58
- return o[prop];
59
- }, obj);
60
-
61
- if (Array.isArray(parent)) {
62
- // todo: better support for non id keys
63
- const idx = parent.findIndex((e) => e.id === last);
64
- if (idx >= 0 && value === null) {
65
- parent.splice(idx, 1);
66
- } else if (idx >= 0) {
67
- parent[idx] = value;
68
- } else if (value !== null) {
69
- parent.push(value);
70
- }
71
- } else if (value === null) {
72
- delete parent[last];
73
- } else {
74
- parent[last] = value;
75
- }
76
- return obj;
77
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./access-admin.schema.json');
@@ -1,57 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/access/admin",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Admin Access Config",
6
- "type": "object",
7
- "properties": {
8
- "role": {
9
- "title": "Role",
10
- "type": "object",
11
- "patternProperties": {
12
- "^[a-z-_]+$": {
13
- "description": "The email glob of the users or a group reference for the respective role.",
14
- "type": "array",
15
- "items": {"type": "string"}
16
- }
17
- },
18
- "additionalProperties": false
19
- },
20
- "requireAuth": {
21
- "description": "Enforce authentication if set to true. If set to 'auto' it will enforce authentication if a role mapping is defined. defaults to 'auto'.",
22
- "default": "auto",
23
- "oneOf": [
24
- {
25
- "type": "boolean"
26
- },
27
- {
28
- "type": "string",
29
- "enum": ["auto"]
30
- }
31
- ]
32
- },
33
- "defaultRole": {
34
- "description": "the default roles assigned to the users. defaults to `basic_publish` for unauthenticated setups.",
35
- "type": "array",
36
- "items": {
37
- "type": "string",
38
- "enum": [
39
- "admin",
40
- "author",
41
- "publish",
42
- "develop",
43
- "basic_author",
44
- "basic_publish",
45
- "config",
46
- "config_admin"
47
- ]
48
- }
49
- },
50
- "apiKeyId": {
51
- "description": "the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.",
52
- "type": "array",
53
- "items": {"type": "string"}
54
- }
55
- },
56
- "additionalProperties": false
57
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./access-site.schema.json');
@@ -1,24 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/access/site",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Site Access Config",
6
- "type": "object",
7
- "properties": {
8
- "apiKeyId": {
9
- "description": "IDs of the api keys (tokens) that are allowed.",
10
- "type": "array",
11
- "items": {
12
- "type": "string"
13
- }
14
- },
15
- "clientCertDN": {
16
- "description": "the DNs of the client certificates that are allowed.",
17
- "type": "array",
18
- "items": {
19
- "type": "string"
20
- }
21
- }
22
- },
23
- "additionalProperties": false
24
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./access.schema.json');
@@ -1,22 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$schema": "https://json-schema.org/draft/2019-09/schema",
4
- "$id": "https://ns.adobe.com/helix/config/access",
5
- "type": "object",
6
- "title": "Access",
7
- "properties": {
8
- "admin": {
9
- "$ref": "https://ns.adobe.com/helix/config/access/admin"
10
- },
11
- "site": {
12
- "$ref": "https://ns.adobe.com/helix/config/access/site"
13
- },
14
- "preview": {
15
- "$ref": "https://ns.adobe.com/helix/config/access/site"
16
- },
17
- "live": {
18
- "$ref": "https://ns.adobe.com/helix/config/access/site"
19
- }
20
- },
21
- "additionalProperties": false
22
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./cdn-prod-akamai.schema.json');
@@ -1,45 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/cdn/prod/akamai",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Akamai CDN Config",
6
- "type": "object",
7
- "properties": {
8
- "type": {
9
- "type": "string",
10
- "const": "akamai"
11
- },
12
- "host": {
13
- "description": "production host",
14
- "type": "string"
15
- },
16
- "route": {
17
- "description": "Routes on the CDN that are rendered with Franklin",
18
- "type": "array",
19
- "items": {
20
- "type": "string"
21
- }
22
- },
23
- "endpoint": {
24
- "type": "string"
25
- },
26
- "clientSecret": {
27
- "type": "string"
28
- },
29
- "clientToken": {
30
- "type": "string"
31
- },
32
- "accessToken": {
33
- "type": "string"
34
- }
35
- },
36
- "required": [
37
- "type",
38
- "host",
39
- "endpoint",
40
- "clientSecret",
41
- "clientToken",
42
- "accessToken"
43
- ],
44
- "additionalProperties": false
45
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./cdn-prod-cloudflare.schema.json');
@@ -1,41 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/cdn/prod/cloudflare",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Cloudflare CDN Config",
6
- "type": "object",
7
- "properties": {
8
- "type": {
9
- "type": "string",
10
- "const": "cloudflare"
11
- },
12
- "host": {
13
- "description": "production host",
14
- "type": "string"
15
- },
16
- "route": {
17
- "description": "Routes on the CDN that are rendered with Franklin",
18
- "type": "array",
19
- "items": {
20
- "type": "string"
21
- }
22
- },
23
- "plan": {
24
- "type": "string"
25
- },
26
- "zoneId": {
27
- "type": "string"
28
- },
29
- "apiToken": {
30
- "type": "string"
31
- }
32
- },
33
- "required": [
34
- "type",
35
- "host",
36
- "plan",
37
- "zoneId",
38
- "apiToken"
39
- ],
40
- "additionalProperties": false
41
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./cdn-prod-cloudfront.schema.json');
@@ -1,41 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/cdn/prod/cloudfront",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Cloudfront CDN Config",
6
- "type": "object",
7
- "properties": {
8
- "type": {
9
- "type": "string",
10
- "const": "cloudfront"
11
- },
12
- "host": {
13
- "description": "production host",
14
- "type": "string"
15
- },
16
- "route": {
17
- "description": "Routes on the CDN that are rendered with Franklin",
18
- "type": "array",
19
- "items": {
20
- "type": "string"
21
- }
22
- },
23
- "distributionId": {
24
- "type": "string"
25
- },
26
- "accessKeyId": {
27
- "type": "string"
28
- },
29
- "secretAccessKey": {
30
- "type": "string"
31
- }
32
- },
33
- "required": [
34
- "type",
35
- "host",
36
- "distributionId",
37
- "accessKeyId",
38
- "secretAccessKey"
39
- ],
40
- "additionalProperties": false
41
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./cdn-prod-fastly.schema.json');
@@ -1,40 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/cdn/prod/fastly",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Fastly CDN Config",
6
- "type": "object",
7
- "description": "Production CDN configuration for Fastly",
8
- "properties": {
9
- "type": {
10
- "type": "string",
11
- "const": "fastly"
12
- },
13
- "host": {
14
- "description": "production host",
15
- "type": "string"
16
- },
17
- "route": {
18
- "description": "Routes on the CDN that are rendered with Franklin",
19
- "type": "array",
20
- "items": {
21
- "type": "string"
22
- }
23
- },
24
- "serviceId": {
25
- "description": "The Fastly Service ID",
26
- "type": "string"
27
- },
28
- "authToken": {
29
- "description": "A Fastly token for purging",
30
- "type": "string"
31
- }
32
- },
33
- "required": [
34
- "type",
35
- "host",
36
- "serviceId",
37
- "authToken"
38
- ],
39
- "additionalProperties": false
40
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./cdn-prod-managed.schema.json');
@@ -1,29 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/cdn/prod/managed",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "Managed CDN Config",
6
- "type": "object",
7
- "properties": {
8
- "type": {
9
- "type": "string",
10
- "const": "managed"
11
- },
12
- "host": {
13
- "description": "production host",
14
- "type": "string"
15
- },
16
- "route": {
17
- "description": "Routes on the CDN that are rendered with Franklin",
18
- "type": "array",
19
- "items": {
20
- "type": "string"
21
- }
22
- }
23
- },
24
- "required": [
25
- "type",
26
- "host"
27
- ],
28
- "additionalProperties": false
29
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./cdn.schema.json');
@@ -1,75 +0,0 @@
1
- {
2
- "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
- "$id": "https://ns.adobe.com/helix/config/cdn",
4
- "$schema": "https://json-schema.org/draft/2019-09/schema",
5
- "title": "CDN Config",
6
- "type": "object",
7
- "properties": {
8
- "prod": {
9
- "oneOf": [
10
- {
11
- "$ref": "https://ns.adobe.com/helix/config/cdn/prod/fastly"
12
- },
13
- {
14
- "$ref": "https://ns.adobe.com/helix/config/cdn/prod/cloudflare"
15
- },
16
- {
17
- "$ref": "https://ns.adobe.com/helix/config/cdn/prod/akamai"
18
- },
19
- {
20
- "$ref": "https://ns.adobe.com/helix/config/cdn/prod/managed"
21
- },
22
- {
23
- "$ref": "https://ns.adobe.com/helix/config/cdn/prod/cloudfront"
24
- },
25
- {
26
- "type": "object",
27
- "title": "EmptyConfig",
28
- "properties": {
29
- "host": {
30
- "description": "production host",
31
- "type": "string"
32
- }
33
- },
34
- "required": [
35
- "host"
36
- ],
37
- "additionalProperties": false
38
- }
39
- ]
40
- },
41
- "live": {
42
- "type": "object",
43
- "properties": {
44
- "host": {
45
- "description": "Sidekick config to override the default preview host. it supports parameters $owner and $repo",
46
- "examples": [
47
- "main--$repo--page.example.com"
48
- ],
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "host"
54
- ],
55
- "additionalProperties": false
56
- },
57
- "preview": {
58
- "type": "object",
59
- "properties": {
60
- "host": {
61
- "description": "Sidekick config to override the default live host. it supports parameters $owner and $repo",
62
- "examples": [
63
- "main--$repo--live.example.com\""
64
- ],
65
- "type": "string"
66
- }
67
- },
68
- "required": [
69
- "host"
70
- ],
71
- "additionalProperties": false
72
- }
73
- },
74
- "additionalProperties": false
75
- }
@@ -1,12 +0,0 @@
1
- /*
2
- * Copyright 2024 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- module.exports = require('./code.schema.json');