"use client"; import { CopilotKitProvider, CopilotSidebar } from "@copilotkit/react-core/v2"; const runtimeUrl = process.env.NEXT_PUBLIC_COPILOTKIT_RUNTIME_URL ?? "http://localhost:4000/api/copilotkit"; export default function Home() { return (

CopilotKit v2 + Express (Single Route)

This client connects to the Express runtime at {runtimeUrl}.

Try asking it to "roast my name" to trigger the server-side tool.

); }