소스 검색

redirect for /docs/registry (#60)

Chris Tate 5 달 전
부모
커밋
72d6468e70
4개의 변경된 파일15개의 추가작업 그리고 8개의 파일을 삭제
  1. 3 6
      apps/web/app/(main)/docs/catalog/page.tsx
  2. 1 1
      apps/web/components/docs-mobile-nav.tsx
  3. 11 1
      apps/web/next.config.js
  4. 0 0
      examples/remotion/tsconfig.tsbuildinfo

+ 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


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.