Files
copilotkit__copilotkit/docs/snippets/self-hosting-copilot-runtime-configure-copilotkit-provider.mdx

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>
);
}