parent
87f4baf491
commit
b2329fcc14
8 changed files with 6 additions and 2787 deletions
|
@ -388,12 +388,11 @@ module.exports = {
|
|||
|
||||
res.send(data)
|
||||
} else {
|
||||
// res.status(404).send(`
|
||||
// <link rel="stylesheet" href="/style.css">
|
||||
// <h1>404</h1>
|
||||
// <p>Uh oh... I think your lost? There's nothing here :P</p>
|
||||
// `)
|
||||
next()
|
||||
res.status(404).send(`
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<h1>404</h1>
|
||||
<p>Uh oh... I think your lost? There's nothing here :P</p>
|
||||
`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -431,8 +430,6 @@ function pregenerate() {
|
|||
for (var i = 0; i < pregenFiles.length; i++) {
|
||||
pregenFiles[i].html = pregenFiles[i].html.replaceAll("{PREGEN_TOTAL}", Date.now() - lastPregen)
|
||||
}
|
||||
|
||||
module.exports.pregen = pregenFiles
|
||||
}
|
||||
|
||||
pregenerate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue