quidproquo-deploy-awscdk 0.0.83 → 0.0.84

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.
@@ -160,15 +160,15 @@ class QpqWebserverWebEntryConstruct extends QpqConstructBlock_1.QpqConstructBloc
160
160
  // if we have some ~ Build the edge lambdas and deploy
161
161
  if (seos.length > 0) {
162
162
  const seoEntryBuildPath = quidproquo_webserver_1.qpqWebServerUtils.getWebEntrySeoFullPath(props.qpqConfig, props.webEntryConfig);
163
- const edgeFunctionVR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-${props.webEntryConfig.name}-VR`, {
164
- functionName: this.resourceName(`SEO-VR-${props.webEntryConfig.name}`),
163
+ const edgeFunctionVR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-VR`, {
164
+ functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-VR'),
165
165
  timeout: cdk.Duration.seconds(5),
166
166
  runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X,
167
167
  code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(seoEntryBuildPath, 'lambdaEventViewerRequest')),
168
168
  handler: 'index.executeEventViewerRequest',
169
169
  });
170
- const edgeFunctionOR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-${props.webEntryConfig.name}-OR`, {
171
- functionName: this.resourceName(`SEO-OR-${props.webEntryConfig.name}`),
170
+ const edgeFunctionOR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-OR`, {
171
+ functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-OR'),
172
172
  timeout: cdk.Duration.seconds(30),
173
173
  runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X,
174
174
  memorySize: 1024,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-deploy-awscdk",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",
@@ -218,33 +218,25 @@ export class QpqWebserverWebEntryConstruct extends QpqConstructBlock {
218
218
  props.webEntryConfig,
219
219
  );
220
220
 
221
- const edgeFunctionVR = new aws_cloudfront.experimental.EdgeFunction(
222
- this,
223
- `SEO-${props.webEntryConfig.name}-VR`,
224
- {
225
- functionName: this.resourceName(`SEO-VR-${props.webEntryConfig.name}`),
226
- timeout: cdk.Duration.seconds(5),
227
- runtime: aws_lambda.Runtime.NODEJS_18_X,
228
-
229
- code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'lambdaEventViewerRequest')),
230
- handler: 'index.executeEventViewerRequest',
231
- },
232
- );
221
+ const edgeFunctionVR = new aws_cloudfront.experimental.EdgeFunction(this, `SEO-VR`, {
222
+ functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-VR'),
223
+ timeout: cdk.Duration.seconds(5),
224
+ runtime: aws_lambda.Runtime.NODEJS_18_X,
233
225
 
234
- const edgeFunctionOR = new aws_cloudfront.experimental.EdgeFunction(
235
- this,
236
- `SEO-${props.webEntryConfig.name}-OR`,
237
- {
238
- functionName: this.resourceName(`SEO-OR-${props.webEntryConfig.name}`),
239
- timeout: cdk.Duration.seconds(30),
240
- runtime: aws_lambda.Runtime.NODEJS_18_X,
226
+ code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'lambdaEventViewerRequest')),
227
+ handler: 'index.executeEventViewerRequest',
228
+ });
241
229
 
242
- memorySize: 1024,
230
+ const edgeFunctionOR = new aws_cloudfront.experimental.EdgeFunction(this, `SEO-OR`, {
231
+ functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-OR'),
232
+ timeout: cdk.Duration.seconds(30),
233
+ runtime: aws_lambda.Runtime.NODEJS_18_X,
243
234
 
244
- code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'lambdaEventOriginRequest')),
245
- handler: 'index.executeEventOriginRequest',
246
- },
247
- );
235
+ memorySize: 1024,
236
+
237
+ code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'lambdaEventOriginRequest')),
238
+ handler: 'index.executeEventOriginRequest',
239
+ });
248
240
 
249
241
  const grantables = qpqDeployAwsCdkUtils.getQqpGrantableResources(
250
242
  this,