9 lines
253 B
JavaScript
9 lines
253 B
JavaScript
// make sure basePath doesn't end with /
|
|
let { pathPrefix } = require('../../config/host.json')
|
|
const urlChars = pathPrefix.split('')
|
|
|
|
if (pathPrefix.length > 1 && urlChars.pop() === '/') {
|
|
pathPrefix = urlChars.join('')
|
|
}
|
|
module.exports = pathPrefix
|