feat: URL trailing slashes remove + All pages basepath

This commit is contained in:
NGPixel
2017-04-23 10:56:14 -04:00
parent db16eb72f0
commit f44d0a3c44
6 changed files with 46 additions and 4 deletions

View File

@@ -351,6 +351,12 @@ module.exports = (port, spinner) => {
})
})
).then(() => {
if (process.env.IS_HEROKU) {
return fs.outputJsonAsync('./app/heroku.json', { configured: true })
} else {
return true
}
}).then(() => {
res.json({ ok: true })
}).catch(err => {
res.json({ ok: false, error: err.message })