fix: do not redirect to main website on 404

This commit is contained in:
Vjacheslav Trushkin 2022-10-20 11:41:41 +03:00
parent a5172ff84a
commit 068ba3dc39
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ export async function startHTTPServer() {
server.setDefaultRoute((req, res) => {
res.statusCode = 301;
console.log('404:', req.url);
res.setHeader('Location', appConfig.redirectIndex);
// res.setHeader('Location', appConfig.redirectIndex);
// Need to set custom headers because hooks don't work here
for (let i = 0; i < headers.length; i++) {