From 44a7723849d395e3effd784e8362845907d0b813 Mon Sep 17 00:00:00 2001 From: rossrobino Date: Fri, 30 Aug 2024 09:52:39 -0400 Subject: [PATCH] docs: don't redirect all --- apps/docs/src/+server.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/docs/src/+server.ts b/apps/docs/src/+server.ts index e5be105..fe18dc6 100644 --- a/apps/docs/src/+server.ts +++ b/apps/docs/src/+server.ts @@ -28,9 +28,10 @@ app.get("/", async (c) => { }); // redirects from previous version -app.get("/oklch/", (c) => c.redirect("/color-generator", 301)); -app.get("/oklch", (c) => c.redirect("/color-generator", 301)); +app.get("/components/", (c) => c.redirect("/", 301)); + +app.get("/fonts/", (c) => c.redirect("/", 301)); -app.get("/*", (c) => c.redirect("/", 301)); +app.get("/oklch/", (c) => c.redirect("/color-generator", 301)); export default app;