Skip to content

Commit ffdaaec

Browse files
committed
redirect for /docs/registry
1 parent e6f2b1e commit ffdaaec

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

apps/web/app/(main)/docs/catalog/page.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@ const customPrompt = catalog.prompt({
116116
<h2 className="text-xl font-semibold mt-12 mb-4">Next</h2>
117117
<p className="text-sm text-muted-foreground">
118118
Learn how to{" "}
119-
<Link
120-
href="/docs/components"
121-
className="text-foreground hover:underline"
122-
>
123-
register React components
119+
<Link href="/docs/registry" className="text-foreground hover:underline">
120+
register components
124121
</Link>{" "}
125-
for your catalog.
122+
in your registry.
126123
</p>
127124
</article>
128125
);

apps/web/components/docs-mobile-nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const navigation = [
2424
title: "Core Concepts",
2525
items: [
2626
{ title: "Catalog", href: "/docs/catalog" },
27-
{ title: "Components", href: "/docs/components" },
27+
{ title: "Registry", href: "/docs/registry" },
2828
{ title: "Data Binding", href: "/docs/data-binding" },
2929
{ title: "Actions", href: "/docs/actions" },
3030
{ title: "Visibility", href: "/docs/visibility" },

apps/web/next.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
async redirects() {
4+
return [
5+
{
6+
source: "/docs/components",
7+
destination: "/docs/registry",
8+
permanent: true,
9+
},
10+
];
11+
},
12+
};
313

414
export default nextConfig;

examples/remotion/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)