We are sorry, but currently, only one domain can be connected to the STUDIO. Therefore, it is difficult to set up both URLs with and without the www.
It depends on the settings of the DNS server, but if "sample.com" has been set only sample.com will be able to access the STUDIO server and "www.sample.com" will not be accessible. (In Chrome's address bar, the www is omitted and appears together. It's a separate domain).