We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db7aa57 + 7943313 commit ce5f751Copy full SHA for ce5f751
scripts/build.ts
@@ -33,6 +33,17 @@ const index = `<html>
33
await writeFile(`${destPath}/index.html`, index)
34
console.log(`Written ${destPath}/index.html`)
35
36
+// Creates a 404.html file that says not found
37
+const fourOhFour = `<html>
38
+ <head>
39
+ <title>404 - Not Found</title>
40
+ </head>
41
+ <body>Not found</body>
42
+</html>`
43
+
44
+await writeFile(`${destPath}/404.html`, fourOhFour)
45
+console.log(`Written ${destPath}/404.html`)
46
47
const stats = {
48
total: quotes.length,
49
all: `${baseUrl}/quotes/all.json`,
0 commit comments