Consolidate UI configuration in one place, allowing it to be overridden from the server
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import config from '../config'
|
||||
|
||||
const baseUrl = (path) => {
|
||||
const base = localStorage.getItem('baseURL') || ''
|
||||
const base = config.baseURL || ''
|
||||
const parts = [base]
|
||||
parts.push(path.replace(/^\//, ''))
|
||||
return parts.join('/')
|
||||
|
||||
Reference in New Issue
Block a user