Files
Alem Tuzlak ebe60743fd docs: migrate runtime examples to v2 fetch-based handlers
Replace deprecated framework-specific endpoints across docs with their
v2 equivalents:

- copilotRuntimeNextJSAppRouterEndpoint -> createCopilotRuntimeHandler
  from @copilotkit/runtime/v2 (Next.js App Router accepts the fetch
  handler directly, so POST collapses to a one-liner export).
- copilotRuntimeNodeHttpEndpoint (Express usage) -> createCopilotExpressHandler
  from @copilotkit/runtime/v2/express.
- copilotRuntimeNodeHttpEndpoint (raw Node.js HTTP) -> createCopilotNodeListener
  from @copilotkit/runtime/v2/node.

Also drops ExperimentalEmptyAdapter / serviceAdapter / NextRequest from
all examples (none of these exist in v2). Pages Router and NestJS tabs
are left untouched because v2 has no direct adapter for them.

Updates the JSDoc on CopilotKitProps.credentials so the regenerated
copilotkit-component snippet stops surfacing the old Next.js helper.

Pre-commit skipped: react-core:test fails on a pre-existing flaky
e2e test (CopilotChatPerf.e2e.test.tsx, virtual-core/jsdom rAF race)
that also fails on clean main, unrelated to this change.
2026-05-07 13:27:46 +02:00
..
2024-10-22 01:57:00 -07:00
2025-12-17 23:01:05 -05:00
2025-03-26 18:57:25 -07:00

fumadocs-test

This is a Next.js application generated with Create Fumadocs.

Run development server:

npm run dev
# or
pnpm dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Next.js and Fumadocs, take a look at the following resources:

Vercel Deployment with Git LFS

Docs assets are tracked with Git LFS. To ensure production builds always receive real asset bytes (not pointer files), deploy docs through GitHub Actions using .github/workflows/deploy_docs_vercel.yml.

Required GitHub repository secrets:

  • VERCEL_TOKEN
  • VERCEL_ORG_ID
  • VERCEL_PROJECT_ID_DOCS

PR previews:

  • .github/workflows/deploy_docs_vercel_preview.yml deploys docs previews for non-fork pull requests.
  • The workflow posts/updates a sticky PR comment with a clickable Open Docs Preview link.

Recommended Vercel project setting:

  • Disable automatic Git-based deployments for the docs project and let the GitHub Actions workflow handle production deploys.