Переглянути джерело

redirect for /docs/registry (#60)

Chris Tate 5 місяців тому
батько
коміт
72d6468e70

+ 3 - 6
apps/web/app/(main)/docs/catalog/page.tsx

@@ -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>
   );

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

@@ -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
apps/web/next.config.js

@@ -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;

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
examples/remotion/tsconfig.tsbuildinfo


Деякі файли не було показано, через те що забагато файлів було змінено