fix: add root routes for index.html (Apache strips base prefix on proxy)
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 3s

This commit is contained in:
OpenClaw Agent 2026-03-13 15:18:45 +00:00
parent 1d082d9016
commit 1110e95e49

View File

@ -84,7 +84,8 @@ app.delete(['/api/text', BASE + '/api/text'], async (req, res) => {
});
// ── Serve index.html ──────────────────────────────────────────────────────
app.get([BASE, BASE + '/', BASE + '/index.html'], (req, res) => {
// Apache strips the BASE prefix before proxying, so handle both forms
app.get(['/', '/index.html', BASE, BASE + '/', BASE + '/index.html'], (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
});