@serverless/domain
Advanced tools
Comparing version 6.0.3 to 6.0.4
{ | ||
"name": "@serverless/domain", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"main": "./serverless.js", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
31
utils.js
@@ -708,20 +708,2 @@ const aws = require('aws-sdk') | ||
// 5. then make our changes | ||
// todo maybe we should add ALL error codes returned from CloudFront/S3?! | ||
params.DistributionConfig.CustomErrorResponses = { | ||
Quantity: 2, | ||
Items: [ | ||
{ | ||
ErrorCode: 404, | ||
ErrorCachingMinTTL: 300, | ||
ResponseCode: '200', | ||
ResponsePagePath: '/index.html' | ||
}, | ||
{ | ||
ErrorCode: 403, | ||
ErrorCachingMinTTL: 300, | ||
ResponseCode: '200', | ||
ResponsePagePath: '/index.html' | ||
} | ||
] | ||
} | ||
params.DistributionConfig.Origins.Items = [ | ||
@@ -731,9 +713,8 @@ { | ||
DomainName: subdomain.url, | ||
OriginPath: '', | ||
CustomHeaders: { | ||
Quantity: 0, | ||
Items: [] | ||
}, | ||
S3OriginConfig: { | ||
OriginAccessIdentity: '' | ||
CustomOriginConfig: { | ||
HTTPPort: 80, | ||
HTTPSPort: 443, | ||
OriginKeepaliveTimeout: 5, | ||
OriginProtocolPolicy: 'https-only', | ||
OriginReadTimeout: 30 | ||
} | ||
@@ -740,0 +721,0 @@ } |
55711
1247