Skip to content

Commit c10e10d

Browse files
fix build
1 parent 82a6616 commit c10e10d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import { redirect } from "next/navigation";
22
import { env } from "@sourcebot/shared";
33

4-
export default function AskGHLayout({
5-
children,
6-
params,
7-
}: {
4+
export default async function AskGHLayout(props: {
85
children: React.ReactNode;
9-
params: { domain: string };
6+
params: Promise<{ domain: string }>;
107
}) {
8+
const params = await props.params;
119
if (env.EXPERIMENT_ASK_GH_ENABLED !== 'true') {
1210
redirect(`/${params.domain}`);
1311
}
1412

15-
return <>{children}</>;
13+
return <>{props.children}</>;
1614
}

0 commit comments

Comments
 (0)