From 4981099b119847f2060f24e17d0e20d5027b42ec Mon Sep 17 00:00:00 2001 From: RASH Date: Sat, 28 Jun 2025 17:43:03 +0530 Subject: [PATCH 1/2] updated the paths and also fixed the header logo issue tested with deployed link and locally --- apps/www/app/_components/demo-card.tsx | 2 +- apps/www/app/layout.tsx | 8 ++++---- apps/www/components/header.tsx | 5 ++--- apps/www/next.config.ts | 17 +++++++++++------ 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/apps/www/app/_components/demo-card.tsx b/apps/www/app/_components/demo-card.tsx index 2e735a5..61ac3ab 100644 --- a/apps/www/app/_components/demo-card.tsx +++ b/apps/www/app/_components/demo-card.tsx @@ -17,7 +17,7 @@ export default function DemoCard({ name, Component }: FormDemoItem) { className="absolute inset-0 z-10" />
-
+
{Component}
{name} diff --git a/apps/www/app/layout.tsx b/apps/www/app/layout.tsx index 23dcb46..d151ed6 100644 --- a/apps/www/app/layout.tsx +++ b/apps/www/app/layout.tsx @@ -22,7 +22,7 @@ export const metadata: Metadata = { }, ], icons: { - icon: "/ui/favicon.ico", + icon: "/favicon.ico", // TODO: add more icons }, } @@ -35,9 +35,9 @@ export default function RootLayout({ return ( -
-
-
+
+
+
diff --git a/apps/www/components/header.tsx b/apps/www/components/header.tsx index cbe31ec..a5656fe 100644 --- a/apps/www/components/header.tsx +++ b/apps/www/components/header.tsx @@ -1,5 +1,4 @@ import { TagIcon } from "@heroicons/react/16/solid" -import Image from "next/image" import Link from "next/link" import GitHubIcon from "@/components/icons/github" @@ -10,8 +9,8 @@ export default function Header() {
- logo Date: Sat, 28 Jun 2025 18:02:09 +0530 Subject: [PATCH 2/2] updated --- apps/www/components/header.tsx | 33 +++++++++++++++++++++++++++++++++ apps/www/next.config.ts | 6 +++--- 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 apps/www/components/header.tsx diff --git a/apps/www/components/header.tsx b/apps/www/components/header.tsx new file mode 100644 index 0000000..a5656fe --- /dev/null +++ b/apps/www/components/header.tsx @@ -0,0 +1,33 @@ +import { TagIcon } from "@heroicons/react/16/solid" +import Link from "next/link" + +import GitHubIcon from "@/components/icons/github" + +export default function Header() { + return ( +
+
+
+ + logo +

+ HeadcnUI +

+ + + v0.1 + + +
+ + + +
+
+ ) +} diff --git a/apps/www/next.config.ts b/apps/www/next.config.ts index 0da4664..5ad2bc7 100644 --- a/apps/www/next.config.ts +++ b/apps/www/next.config.ts @@ -5,7 +5,9 @@ const isGitHubPages = process.env.DEPLOY_TARGET === "github-pages" const nextConfig: NextConfig = { // Always export for static deployment output: "export", - distDir: "../../dist/apps/www", + + // Use a relative path that doesn't leave filesystem root + distDir: process.env.NODE_ENV === "production" ? "dist" : ".next", // GitHub Pages specific settings ...(isGitHubPages && { @@ -15,8 +17,6 @@ const nextConfig: NextConfig = { // shared devIndicators: false, - basePath: "/ui", - assetPrefix: "/ui/", } export default nextConfig