Has anyone built or integrated multi tenant domain...
# help
r
Has anyone built or integrated multi tenant domains/ssl alongside NextJS, or point me at any good resources I could dig enough to integrate with SST? e.g. is there any way I can integrate some dynamoDB layer at edge to request and cache certs? or handle DNS resolution for a Next.js site somehow?
I am at total loss while trying to implement this without ACM, or finding a workaround for apex domains not being supported by CF, and I also do not know if it would be more costly to use ACM instead of something like Let's Encrypt. Is it also possible to point the apex domain to the NextJS distribution without route53?
f
Hey @Roberto Novelo, by apex domains not being supported by CF, do you mean this does not work for you?
Copy code
new NextjsSite(this, "Site", {
  path: "path/to/site",
  customDomain: "<http://domain.com|domain.com>",
});
r
Hello @Frank, I am trying to provision Next.js sites for users, and want to provide SSL for their own domains. Given that CF does not support apex domains (no subdomains) without route53, I am looking at some way to do DNS resolution at edge for Next.js sites created with the Nextj.js construct, or implement some sort of load balancer using LE certs. Just wondering if there's any resources in the community around multi tenancy for SST. Not sure if this is really the channel to ask about this, but thanks for looking!!
t
This probably can't be handled at the IaC level since you want things to happen more dynamically outside of a CI process (I'm assuming)
You'll have to talk directly to aws apis through aws-sdk in your application