How to change instance url?

question / dilemma:

having of course both domains, what would be better?

  1. use this npm script to change domain
  2. have the instance on the old domain and do a url rewrite (or something equivalent) on the reverse proxy to the new domain?