title: Is there any way to configure baseURL in relation to the current domain?
body: <p>I have deployment environments and difference domains(test-1-site.com, test-2-site.com).</p>
  <p>I wish to dynamically set baseURL depending on what environment my application is in.</p>
  <pre><code>const axiosInstance = axios.create({
      baseURL: URL,
      headers: {
          'Content-Type': 'application/json',
          accept: 'application/json',
      },
  });
  </code></pre>
  <p>I tried to do it with bitbucket and variables and get this in process.env, but it doesn't work. Now I'm looking for a way to do it differently. How can this be done without bad code?</p>
  <p>Thank you in advance.</p>