Skip to content

Commit a76c316

Browse files
authored
Merge pull request #34 from Eywek/feat/proxy-support
feat: use `proxyUrl` if provided
2 parents ad81d47 + c39df1c commit a76c316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routes/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = async (req, res) => {
2-
res.render('index', { basePath: req.baseUrl })
2+
const basePath = req.proxyUrl || req.baseUrl
3+
res.render('index', { basePath })
34
}

0 commit comments

Comments
 (0)