How inviteDomain works?

How is that inviteDomain in config.js works? I want to change the sharing link.
I’d tried making a json files and using dynamic branding url to locate the file like someone said in another thread, but it’s not work.

Do anyone have any suggestion or maybe I am wrong?