The domain property creates a Route53 record for CloudFront with a fixed construct id, so if it already exists then you can only ever deploy 1 serverless-website-analytics component per stack.
This is on version 0.x.x.
You get the following error when using CDK deploy:
Error: There is already a Construct with name 'cloudfront-record' in App [xxx]
The
domain
property creates a Route53 record for CloudFront with a fixed construct id, so if it already exists then you can only ever deploy 1serverless-website-analytics
component per stack.This is on version 0.x.x.
You get the following error when using CDK deploy: