mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
18 lines
522 B
Plaintext
18 lines
522 B
Plaintext
```tsx title="layout.tsx"
|
|
import "./globals.css";
|
|
import { ReactNode } from "react";
|
|
import { CopilotKit } from "@copilotkit/react-core"; // [!code highlight]
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en">
|
|
<body>
|
|
{/* Make sure to use the URL you configured in the previous step */}
|
|
{/* [!code highlight:3] */}
|
|
<CopilotKit runtimeUrl="/api/copilotkit">
|
|
{children}
|
|
</CopilotKit>
|
|
</body>
|
|
</html>
|
|
);
|
|
} |