Skip to content

Commit edbbc1d

Browse files
committed
edge-api: fix origin-selector domain mapping
1 parent 1d64316 commit edbbc1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/constructs/edge-api/src/lambdas/origin-selector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ export const handler = async (event: CloudFrontRequestEvent): Promise<CloudFront
3737
req.origin = {
3838
custom: {
3939
...req.origin.custom,
40-
domainName: mapping.domain,
40+
domainName: mapping.destination,
4141
},
4242
}
4343
req.headers['host'] = [
4444
{
4545
key: 'host',
46-
value: mapping.domain,
46+
value: mapping.destination,
4747
},
4848
]
4949

0 commit comments

Comments
 (0)