diff --git a/next.config.ts b/next.config.ts
index 819f96f32..837deb76c 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -476,6 +476,18 @@ const nextConfig = {
{ source: "/discord", destination: "https://discord.gg/7NF8GNe", permanent: false },
];
},
+ async rewrites() {
+ return ["plus", "plus-assets", "vendor", "nova-api"].flatMap((path) => [
+ {
+ source: `/${path}`,
+ destination: `https://tailwindui.com/${path}`,
+ },
+ {
+ source: `/${path}/:path*`,
+ destination: `https://tailwindui.com/${path}/:path*`,
+ },
+ ]);
+ },
} satisfies NextConfig;
const withMDX = require("@next/mdx")();
diff --git a/src/components/docs-sidebar.tsx b/src/components/docs-sidebar.tsx
index c5f04dd08..c8e117b02 100644
--- a/src/components/docs-sidebar.tsx
+++ b/src/components/docs-sidebar.tsx
@@ -4,9 +4,11 @@ import Link, { LinkProps } from "next/link";
import index from "../app/(docs)/docs/index";
import { DocsSidebarLink } from "./docs-sidebar-link";
-export function TopNavLink(props: React.PropsWithChildren) {
+export function TopNavLink(props: { href: string } & React.ComponentPropsWithoutRef<"a">) {
+ const Component = props.href.startsWith("/plus") ? "a" : Link;
+
return (
-
-
+
Components
-
+
+
+
+
+ UI Kit
+
+