Skip to content

Commit

Permalink
edge-api: fix origin-selector domain mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbalfour committed Oct 25, 2023
1 parent 1d64316 commit edbbc1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/constructs/edge-api/src/lambdas/origin-selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export const handler = async (event: CloudFrontRequestEvent): Promise<CloudFront
req.origin = {
custom: {
...req.origin.custom,
domainName: mapping.domain,
domainName: mapping.destination,
},
}
req.headers['host'] = [
{
key: 'host',
value: mapping.domain,
value: mapping.destination,
},
]

Expand Down

0 comments on commit edbbc1d

Please sign in to comment.