We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a6616 commit c10e10dCopy full SHA for c10e10d
1 file changed
packages/web/src/app/[domain]/askgh/layout.tsx
@@ -1,16 +1,14 @@
1
import { redirect } from "next/navigation";
2
import { env } from "@sourcebot/shared";
3
4
-export default function AskGHLayout({
5
- children,
6
- params,
7
-}: {
+export default async function AskGHLayout(props: {
8
children: React.ReactNode;
9
- params: { domain: string };
+ params: Promise<{ domain: string }>;
10
}) {
+ const params = await props.params;
11
if (env.EXPERIMENT_ASK_GH_ENABLED !== 'true') {
12
redirect(`/${params.domain}`);
13
}
14
15
- return <>{children}</>;
+ return <>{props.children}</>;
16
0 commit comments