#Failed to compile on vercel

1 messages · Page 1 of 1 (latest)

frank sealBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

hollow arch
#

if you need code for src/app/(dashboard)/components/[...slug]/page.tsx:

import { Mdx } from "@/components/mdx-components/Mdx";
import { cn } from "@/lib/utils";
import { allDocs } from "contentlayer/generated";
import { notFound } from "next/navigation";

interface CompSlugPageProps {
  params: {
    slug: string[];
  };
}

async function getDocFromParams(slug: string[]) {
  const doc = allDocs.find((doc) => doc.slugAsParams === slug.join("/"));

  if (!doc) {
    notFound();
  }

  return doc;
}

export default async function CompSlugPage({ params }: CompSlugPageProps) {
  const doc = await getDocFromParams(params.slug);

  return (
    <div className="min-h-screen bg-white/5 text-white flex items-center justify-center">
      <div className="flex flex-col gap-3">
        <h1 className={cn("scroll-m-20 text-3xl font-gilroy tracking-tight")}>
          {doc.title}
        </h1>

        {doc.description && (
          <p className="text-[15px] text-muted-foreground text-balance">
            {doc.description}
          </p>
        )}

        <Mdx code={doc.body.code} />
      </div>
    </div>
  );
}

glacial plaza
#
-params:{slug:string[]}
+params:Promise<{slug:string[]}>
frank sealBOT