From 3bea18b0daca35d54c5180fe3124a5e22df16b46 Mon Sep 17 00:00:00 2001 From: Kacper Wojciechowski <39823706+jog1t@users.noreply.github.com> Date: Thu, 16 Jan 2025 23:48:56 +0100 Subject: [PATCH] fix(hub): build with rivet gives 404s --- frontend/apps/hub/src/components/get-started.tsx | 16 ++++++++-------- frontend/packages/components/src/code.tsx | 2 +- frontend/packages/components/src/docs-sheet.tsx | 2 +- site/src/app/(v2)/[section]/[[...page]]/page.tsx | 2 +- site/src/app/(v2)/layout.tsx | 2 ++ site/src/components/DocsTableOfContents.tsx | 2 +- site/src/components/EmbedDetector.tsx | 1 - site/src/components/v2/Header.tsx | 2 +- 8 files changed, 15 insertions(+), 14 deletions(-) diff --git a/frontend/apps/hub/src/components/get-started.tsx b/frontend/apps/hub/src/components/get-started.tsx index 836947abef..14ea0d9995 100644 --- a/frontend/apps/hub/src/components/get-started.tsx +++ b/frontend/apps/hub/src/components/get-started.tsx @@ -102,7 +102,7 @@ export function GetStarted() { - - + */} @@ -175,31 +175,31 @@ export function GetStarted() { className="grid md:grid-cols-2 gap-4" > diff --git a/frontend/packages/components/src/code.tsx b/frontend/packages/components/src/code.tsx index b2cf72b109..40ddecc88c 100644 --- a/frontend/packages/components/src/code.tsx +++ b/frontend/packages/components/src/code.tsx @@ -2,7 +2,7 @@ import { javascript } from "@codemirror/lang-javascript"; import { json, jsonParseLinter } from "@codemirror/lang-json"; import { linter } from "@codemirror/lint"; import { EditorView } from "@codemirror/view"; -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@radix-ui/react-tabs"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs"; import { Icon, faCopy, faFile } from "@rivet-gg/icons"; import { githubDark } from "@uiw/codemirror-theme-github"; import ReactCodeMirror, { diff --git a/frontend/packages/components/src/docs-sheet.tsx b/frontend/packages/components/src/docs-sheet.tsx index 981e25a0d2..7c41fcfecf 100644 --- a/frontend/packages/components/src/docs-sheet.tsx +++ b/frontend/packages/components/src/docs-sheet.tsx @@ -25,7 +25,7 @@ export function DocsSheet({ path, title, children }: DocsSheetProps) { {title} diff --git a/site/src/app/(v2)/[section]/[[...page]]/page.tsx b/site/src/app/(v2)/[section]/[[...page]]/page.tsx index 59ed0230fe..3fcc92e29c 100644 --- a/site/src/app/(v2)/[section]/[[...page]]/page.tsx +++ b/site/src/app/(v2)/[section]/[[...page]]/page.tsx @@ -86,7 +86,7 @@ export default async function CatchAllCorePage({ params: { section, page } }) { ) : null} -
+
{parentPage && (
diff --git a/site/src/app/(v2)/layout.tsx b/site/src/app/(v2)/layout.tsx index d6e883af06..6c36ad469d 100644 --- a/site/src/app/(v2)/layout.tsx +++ b/site/src/app/(v2)/layout.tsx @@ -1,10 +1,12 @@ import { Footer } from "@/components/Footer"; +import { EmbedDetector } from "@/components/EmbedDetector"; import "@/styles/v2.css"; export default function Layout({ children }) { return ( <> {children} +