Skip to content

Commit

Permalink
Added 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Aug 8, 2023
1 parent db7aa57 commit 7943313
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ const index = `<html>
await writeFile(`${destPath}/index.html`, index)
console.log(`Written ${destPath}/index.html`)

// Creates a 404.html file that says not found
const fourOhFour = `<html>
<head>
<title>404 - Not Found</title>
</head>
<body>Not found</body>
</html>`

await writeFile(`${destPath}/404.html`, fourOhFour)
console.log(`Written ${destPath}/404.html`)

const stats = {
total: quotes.length,
all: `${baseUrl}/quotes/all.json`,
Expand Down

0 comments on commit 7943313

Please sign in to comment.