How to change BrowserRouter and HashRouter depend on variable

join shbcf.ru