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