Skip to content

Commit 46e541a

Browse files
committed
chore(dev-hub) Build issue fixed
1 parent 56a3e38 commit 46e541a

File tree

1 file changed

+4
-5
lines changed
  • apps/developer-hub/src/app/(docs)/[section]

1 file changed

+4
-5
lines changed

apps/developer-hub/src/app/(docs)/[section]/layout.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import type { ReactNode } from "react";
55

66
import { docsOptions } from "../../../config/layout.config";
77

8-
export default function Layout({
8+
export default async function Layout({
99
children,
1010
params,
1111
}: {
1212
children: ReactNode;
13-
params: { section: string };
13+
params: Promise<{ section: string }>;
1414
}) {
15-
const { section } = params;
16-
const options = { ...docsOptions };
15+
const { section } = await params;
1716

1817
return (
1918
<>
@@ -37,7 +36,7 @@ export default function Layout({
3736
</span>
3837
</Banner>
3938
)}
40-
<DocsLayout {...options}>{children}</DocsLayout>
39+
<DocsLayout {...docsOptions}>{children}</DocsLayout>
4140
</>
4241
);
4342
}

0 commit comments

Comments
 (0)