diff --git a/scripts/build.ts b/scripts/build.ts index 7536e2b..d8fd77c 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -33,6 +33,17 @@ const index = ` await writeFile(`${destPath}/index.html`, index) console.log(`Written ${destPath}/index.html`) +// Creates a 404.html file that says not found +const fourOhFour = ` + + 404 - Not Found + + Not found +` + +await writeFile(`${destPath}/404.html`, fourOhFour) +console.log(`Written ${destPath}/404.html`) + const stats = { total: quotes.length, all: `${baseUrl}/quotes/all.json`,