using pathPrefix, renamed basePath to prefixPath, updated how getUrl gets the prefixPath to prevent the need for rebuilding when its changed now just requires restart
9 lines
158 B
JavaScript
9 lines
158 B
JavaScript
const pathPrefix = require('./pathPrefix')
|
|
|
|
module.exports = url => {
|
|
if (pathPrefix !== '/') {
|
|
url = url.split(pathPrefix).join('')
|
|
}
|
|
return url
|
|
}
|