Skip to content

Commit

Permalink
docs: redirect all others to home
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Aug 30, 2024
1 parent 3346eef commit 3ce4169
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apps/docs/src/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ app.get("/", async (c) => {
return c.html(page.toString());
});

app.get("/components/", (c) => {
return c.redirect("/", 301);
});

app.get("/fonts/", (c) => {
return c.redirect("/", 301);
});
// redirects from previous version
app.get("/oklch/", (c) => c.redirect("/color-generator", 301));
app.get("/oklch", (c) => c.redirect("/color-generator", 301));

app.get("/oklch/", (c) => {
return c.redirect("/color-generator", 301);
});
app.get("/*", (c) => c.redirect("/", 301));

export default app;

0 comments on commit 3ce4169

Please sign in to comment.