Skip to content

Commit

Permalink
fix: final url not displayed without custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdottv committed Jun 15, 2021
1 parent 2bda454 commit da3450c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions static/stacks/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -848,12 +848,17 @@ Outputs:
URL:
Description: 'URL to static website.'
Value: !If
- HasDomainOrIsNextJs
- HasDomain
- !Sub
- 'https://${SubDomainNameWithDot}${DomainName}'
- SubDomainNameWithDot: !Ref SubDomainNameWithDot
DomainName: !Ref DomainName
- !GetAtt 'Bucket.WebsiteURL'
- !If
- IsNextJs
- !Sub
- 'https://${DomainName}'
- DomainName: !GetAtt 'CloudFrontDistribution.DomainName'
- !GetAtt 'Bucket.WebsiteURL'
Export:
Name: !Sub '${AWS::StackName}-URL'
DistributionId:
Expand Down

0 comments on commit da3450c

Please sign in to comment.