mirror of https://github.com/iconify/api.git
fix: do not redirect to main website on 404
This commit is contained in:
parent
a5172ff84a
commit
068ba3dc39
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue