changing baseUrl based on hostname