mirror of
https://github.com/vercel-labs/json-render.git
synced 2026-10-02 03:54:41 +08:00
redirect for /docs/registry (#60)
This commit is contained in:
@@ -116,13 +116,10 @@ const customPrompt = catalog.prompt({
|
||||
<h2 className="text-xl font-semibold mt-12 mb-4">Next</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Learn how to{" "}
|
||||
<Link
|
||||
href="/docs/components"
|
||||
className="text-foreground hover:underline"
|
||||
>
|
||||
register React components
|
||||
<Link href="/docs/registry" className="text-foreground hover:underline">
|
||||
register components
|
||||
</Link>{" "}
|
||||
for your catalog.
|
||||
in your registry.
|
||||
</p>
|
||||
</article>
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@ const navigation = [
|
||||
title: "Core Concepts",
|
||||
items: [
|
||||
{ title: "Catalog", href: "/docs/catalog" },
|
||||
{ title: "Components", href: "/docs/components" },
|
||||
{ title: "Registry", href: "/docs/registry" },
|
||||
{ title: "Data Binding", href: "/docs/data-binding" },
|
||||
{ title: "Actions", href: "/docs/actions" },
|
||||
{ title: "Visibility", href: "/docs/visibility" },
|
||||
|
||||
+11
-1
@@ -1,4 +1,14 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
const nextConfig = {
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: "/docs/components",
|
||||
destination: "/docs/registry",
|
||||
permanent: true,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user