fix: typo (#397)

This commit is contained in:
Kazuma Ohashi
2022-11-09 18:38:58 +09:00
committed by GitHub
parent 5902be5335
commit 7e04c69be2
3 changed files with 8 additions and 1 deletions

View File

@@ -19,7 +19,7 @@
"concepts": {
"title": "Concepts",
"pages": [
["architechture", "Architecture"],
["architecture", "Architecture"],
["routes", "Routes"],
["islands", "Interactive islands"],
["static-files", "Static files"],

View File

@@ -31,6 +31,13 @@ export const handler: Handlers<Data> = {
headers: { location: "/docs/introduction" },
});
}
if (slug === "concepts/architechture") {
return new Response("", {
status: 307,
headers: { location: "/docs/concepts/architecture" },
});
}
const entry = TABLE_OF_CONTENTS[slug];
if (!entry) {
return ctx.renderNotFound();