Domain component with www and without

Hi!

I’m trying to make https://www.example.com and https://example.com both go to the same place. Can I use the website component to do this?

Thanks!

I tested the Website Component and it worked great, thanks! Re: Jon’s post, I wasn’t sure how to configure the rest of the custom domain setup process. I found the CloudFront Component and I am going to test it with an empty S3 Component to redirect from www to root domain but I can’t find documentation on all the details. I also tried a few settings from my non-Component setup such as a provider section with stackName and it resulted in an error:

Invalid variable reference syntax for variable name. You can only reference env vars, options, & files. You can check our docs for more info.

Where can I find the docs for these?

Thanks