@awsless/awsless 0.0.530 → 0.0.531
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/bin.js
CHANGED
|
@@ -1690,7 +1690,7 @@ var IconsSchema = z34.record(
|
|
|
1690
1690
|
"Image transformation will be applied from a base image. Base images orginates from a local directory that will be uploaded to S3 or from a lambda function."
|
|
1691
1691
|
),
|
|
1692
1692
|
cors: z34.object({
|
|
1693
|
-
override: z34.boolean().default(
|
|
1693
|
+
override: z34.boolean().default(true),
|
|
1694
1694
|
maxAge: DurationSchema.default("365 days"),
|
|
1695
1695
|
exposeHeaders: z34.string().array().optional(),
|
|
1696
1696
|
credentials: z34.boolean().default(false),
|
|
@@ -6327,6 +6327,18 @@ var iconFeature = defineFeature({
|
|
|
6327
6327
|
resourceName: shortId(`cache-${id}-${ctx.appId}`)
|
|
6328
6328
|
}),
|
|
6329
6329
|
forceDestroy: true
|
|
6330
|
+
// website: {
|
|
6331
|
+
// indexDocument: 'index.html',
|
|
6332
|
+
// },
|
|
6333
|
+
// corsRule: [
|
|
6334
|
+
// {
|
|
6335
|
+
// allowedOrigins: ['*'],
|
|
6336
|
+
// allowedHeaders: ['*'],
|
|
6337
|
+
// allowedMethods: ['GET', 'HEAD'],
|
|
6338
|
+
// exposeHeaders: ['content-type', 'cache-control'],
|
|
6339
|
+
// maxAgeSeconds: toSeconds(days(365)),
|
|
6340
|
+
// },
|
|
6341
|
+
// ],
|
|
6330
6342
|
});
|
|
6331
6343
|
const serverLambda = createPrebuildLambdaFunction(group, ctx, "icon", id, {
|
|
6332
6344
|
bundleFile: join13(__dirname3, "/prebuild/icon/bundle.zip"),
|
|
@@ -6426,16 +6438,17 @@ var iconFeature = defineFeature({
|
|
|
6426
6438
|
const responseHeaders = new $23.aws.cloudfront.ResponseHeadersPolicy(group, "response", {
|
|
6427
6439
|
name,
|
|
6428
6440
|
corsConfig: {
|
|
6429
|
-
originOverride:
|
|
6430
|
-
accessControlMaxAgeSec: toSeconds9(
|
|
6431
|
-
accessControlAllowHeaders: { items:
|
|
6432
|
-
accessControlAllowMethods: { items: ["
|
|
6433
|
-
accessControlAllowOrigins: { items:
|
|
6434
|
-
accessControlExposeHeaders: { items:
|
|
6435
|
-
accessControlAllowCredentials:
|
|
6441
|
+
originOverride: true,
|
|
6442
|
+
accessControlMaxAgeSec: toSeconds9(days7(365)),
|
|
6443
|
+
accessControlAllowHeaders: { items: ["*"] },
|
|
6444
|
+
accessControlAllowMethods: { items: ["ALL"] },
|
|
6445
|
+
accessControlAllowOrigins: { items: ["*"] },
|
|
6446
|
+
accessControlExposeHeaders: { items: ["*"] },
|
|
6447
|
+
accessControlAllowCredentials: false
|
|
6436
6448
|
}
|
|
6437
6449
|
});
|
|
6438
6450
|
const distribution = new $23.aws.cloudfront.Distribution(group, "distribution", {
|
|
6451
|
+
waitForDeployment: false,
|
|
6439
6452
|
comment: name,
|
|
6440
6453
|
enabled: true,
|
|
6441
6454
|
aliases: domainName ? [domainName] : void 0,
|
|
@@ -6490,8 +6503,8 @@ var iconFeature = defineFeature({
|
|
|
6490
6503
|
targetOriginId: "group",
|
|
6491
6504
|
cachePolicyId: cache.id,
|
|
6492
6505
|
viewerProtocolPolicy: "redirect-to-https",
|
|
6493
|
-
allowedMethods: ["GET", "HEAD"
|
|
6494
|
-
cachedMethods: ["GET", "HEAD"
|
|
6506
|
+
allowedMethods: ["GET", "HEAD"],
|
|
6507
|
+
cachedMethods: ["GET", "HEAD"],
|
|
6495
6508
|
responseHeadersPolicyId: responseHeaders.id
|
|
6496
6509
|
}
|
|
6497
6510
|
});
|
|
@@ -1092,7 +1092,7 @@ var IconsSchema = z31.record(
|
|
|
1092
1092
|
"Image transformation will be applied from a base image. Base images orginates from a local directory that will be uploaded to S3 or from a lambda function."
|
|
1093
1093
|
),
|
|
1094
1094
|
cors: z31.object({
|
|
1095
|
-
override: z31.boolean().default(
|
|
1095
|
+
override: z31.boolean().default(true),
|
|
1096
1096
|
maxAge: DurationSchema.default("365 days"),
|
|
1097
1097
|
exposeHeaders: z31.string().array().optional(),
|
|
1098
1098
|
credentials: z31.boolean().default(false),
|
package/dist/prebuild/icon/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
335545401eb807d040031352ed637833c4aba83e
|
|
Binary file
|
|
Binary file
|
|
Binary file
|