I have a domain in route 53. Currently it has a ho...
# help
d
I have a domain in route 53. Currently it has a hosted zone for
<http://mycoolsite.com|mycoolsite.com>
with a NS record and an SOA record if I view it in the aws console. I would like to set up both
<http://www.mycoolsite.com|www.mycoolsite.com>
and
<http://mycoolsite.com|mycoolsite.com>
. Is the following okay or should I delete the hosted domain manually in the console.
Copy code
// Create a Next.js site
    <http://this.site|this.site> = new sst.NextjsSite(this, "Site", {
      path: "frontend",
      customDomain:
        scope.stage === "prod"
          ? {
              domainName: "<http://mycoolsite.com|mycoolsite.com>",
              domainAlias: "<http://wwww.mycoolsite.com|wwww.mycoolsite.com>",
            }
          : undefined,
t
If you deploy that it'll likely fail
Because it won't overwrite. This is something I struggle with because if you delete it your dns is broke until the deploy finishes
Not sure how to deal with that
d
in my case I just want to start again
so should I delete the stuff in route53?
t
Yes
But maybe give it a try before deleting? I think the deploy will fail
d
Oh it’s gone already hahah
I screwed something up before and I was unable to update anything without breaking everything
starting over take 4 😅
t
Haha no worries
d
just ran
npx sst start
🤞 It’s realy great that ya’ll are so helpful. Thanks!