@adobe/helix-config 3.3.3 → 3.3.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.3.4](https://github.com/adobe/helix-config/compare/v3.3.3...v3.3.4) (2024-06-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add cloudfront cdn config to schema ([#114](https://github.com/adobe/helix-config/issues/114)) ([3f12d26](https://github.com/adobe/helix-config/commit/3f12d26c2b067435c6d9766c0f58b8aa51d43fb3))
7
+
1
8
  ## [3.3.3](https://github.com/adobe/helix-config/compare/v3.3.2...v3.3.3) (2024-06-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -164,6 +164,44 @@
164
164
  ],
165
165
  "additionalProperties": false
166
166
  },
167
+ {
168
+ "type": "object",
169
+ "title": "CloudfrontConfig",
170
+ "properties": {
171
+ "type": {
172
+ "type": "string",
173
+ "const": "cloudfront"
174
+ },
175
+ "host": {
176
+ "description": "production host",
177
+ "type": "string"
178
+ },
179
+ "route": {
180
+ "description": "Routes on the CDN that are rendered with Franklin",
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string"
184
+ }
185
+ },
186
+ "distributionId": {
187
+ "type": "string"
188
+ },
189
+ "accessKeyId": {
190
+ "type": "string"
191
+ },
192
+ "secretAccessKey": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ "required": [
197
+ "type",
198
+ "host",
199
+ "distributionId",
200
+ "accessKeyId",
201
+ "secretAccessKey"
202
+ ],
203
+ "additionalProperties": false
204
+ },
167
205
  {
168
206
  "type": "object",
169
207
  "title": "EmptyConfig",
@@ -109,7 +109,7 @@ export interface KeyValuePair {
109
109
  value: string;
110
110
  }
111
111
  export interface CDNConfig {
112
- prod: FastlyConfig | AkamaiConfig | CloudflareConfig | ManagedConfig | EmptyConfig;
112
+ prod: FastlyConfig | AkamaiConfig | CloudflareConfig | ManagedConfig | CloudfrontConfig | EmptyConfig;
113
113
  live?: {
114
114
  /**
115
115
  * Sidekick config to override the default preview host. it supports parameters $owner and $repo
@@ -186,6 +186,20 @@ export interface ManagedConfig {
186
186
  */
187
187
  route?: string[];
188
188
  }
189
+ export interface CloudfrontConfig {
190
+ type: 'cloudfront';
191
+ /**
192
+ * production host
193
+ */
194
+ host: string;
195
+ /**
196
+ * Routes on the CDN that are rendered with Franklin
197
+ */
198
+ route?: string[];
199
+ distributionId: string;
200
+ accessKeyId: string;
201
+ secretAccessKey: string;
202
+ }
189
203
  export interface EmptyConfig {
190
204
  /**
191
205
  * production host
@@ -116,7 +116,7 @@ export interface KeyValuePair {
116
116
  value: string;
117
117
  }
118
118
  export interface CDNConfig {
119
- prod: FastlyConfig | AkamaiConfig | CloudflareConfig | ManagedConfig | EmptyConfig;
119
+ prod: FastlyConfig | AkamaiConfig | CloudflareConfig | ManagedConfig | CloudfrontConfig | EmptyConfig;
120
120
  live?: {
121
121
  /**
122
122
  * Sidekick config to override the default preview host. it supports parameters $owner and $repo
@@ -193,6 +193,20 @@ export interface ManagedConfig {
193
193
  */
194
194
  route?: string[];
195
195
  }
196
+ export interface CloudfrontConfig {
197
+ type: 'cloudfront';
198
+ /**
199
+ * production host
200
+ */
201
+ host: string;
202
+ /**
203
+ * Routes on the CDN that are rendered with Franklin
204
+ */
205
+ route?: string[];
206
+ distributionId: string;
207
+ accessKeyId: string;
208
+ secretAccessKey: string;
209
+ }
196
210
  export interface EmptyConfig {
197
211
  /**
198
212
  * production host