mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
ebe60743fd
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.
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:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Fumadocs - learn about Fumadocs
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_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID_DOCS
PR previews:
.github/workflows/deploy_docs_vercel_preview.ymldeploys docs previews for non-fork pull requests.- The workflow posts/updates a sticky PR comment with a clickable
Open Docs Previewlink.
Recommended Vercel project setting:
- Disable automatic Git-based deployments for the docs project and let the GitHub Actions workflow handle production deploys.