sladg / nextjs-lambda

Lambda deployments for Nextjs12 & Nextjs13 (standalone). Easy CLI commands to get your standalone Next output to run in AWS Lambda (not @Edge)! Uses CDK in behind and produces code zips importable to Terraform, Serverless, Azure, etc.
MIT License
173 stars 19 forks source link

Support for Cloudfront Alternate Domain Names #79

Closed pinarruiz closed 1 year ago

pinarruiz commented 1 year ago

Adding an option like --alternateDomainNames where domain names will be fed in a comma separated manner, or reading multiple entries of the option.

As far as i know there is no way of doing this.

sladg commented 1 year ago

Good point, currently it's possible only with extending CDK and altering the stack definition manually. Will take a look at it, should be done within few days.

sladg commented 1 year ago

This has been released in version 7.0.0. Use --domainNames example.com,other.domain.com,extra.net in CLI command.