-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dns: display error if zone domain does not match custom domain
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
304a319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fwang, one of the aliases I have for my app is not in the hosted zone in my AWS account. CloudFront doesn't complain because the SSL certificate matches the name. And it used to work with sst even though it would create a couple of weird records in the hosted zone (which is what you are correctly preventing here), but at least the CloudFront distribution was always correct. With this change I can't deploy the app anymore. I'm thinking that instead of throwing, maybe sst should just show a message that it will not create a record on the zone for aliases X and Y because the name doesn't match the zone? I could open an issue asking for that, or I could try to contribute and implement it in a PR directly. Let me know your thoughts. Thanks.
304a319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah can you open an issue and link to this?