mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
71d33bae59
The CodeRabbit fixes in d4ef84f2c edited verbatim parity-tracked files directly in the claude-sdk-* instances, diverging them from the north-star (langgraph-python) and failing `pnpm parity:check`. Move the shared-surface fixes to the north-star and propagate to every tracked instance via `pnpm parity:sync --all`: - border-3 -> border-[3px] (border-3 is not a Tailwind utility) - bg-[--x] / text-[--x] -> [var(--x)] (Tailwind v4 CSS-variable syntax) - JSX.IntrinsicElements -> React.JSX.IntrinsicElements (@types/react 19) - Recharts <Bar shape> callback typing - tool-rendering args?: unknown - mode-toggle aria-pressed/type/role, headless-chat <form> + aria-label - docker-route-override AGENT_URL trailing-slash normalization Also revert the next.config.ts `ignoreBuildErrors` removal: next.config.ts is a north-star template file shared across all integration demos, so the suppression can't be dropped on a subset without breaking parity, and dropping it template-wide would need every demo verified to build clean without it. The two real type errors it was masking are now fixed at the north-star, so the shared surface is type-clean regardless. parity:check green (5/5 instances, 0 errors); claude-sdk tsc + oxfmt clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
serverExternalPackages: ["@copilotkit/runtime"],
|
|
env: {
|
|
// The public Threads UI flag is DERIVED from the server-side license token.
|
|
// Set COPILOTKIT_LICENSE_TOKEN (only) to enable Threads — do not set this flag
|
|
// directly. NOTE: NEXT_PUBLIC_* resolves at BUILD time while the runtime reads
|
|
// the token per-request, so the UI gate and runtime agree only when the token is
|
|
// present at build time (the standard `next dev` / host-build flow). For a
|
|
// standalone/Docker image built without the token and injected at runtime, set
|
|
// COPILOTKIT_LICENSE_TOKEN at build time too (or gate the UI at runtime) so the
|
|
// baked flag reflects it.
|
|
NEXT_PUBLIC_COPILOTKIT_THREADS_ENABLED: process.env.COPILOTKIT_LICENSE_TOKEN
|
|
? "true"
|
|
: "false",
|
|
},
|
|
typescript: {
|
|
// Docker route override uses HttpAgent which has a type mismatch with CopilotRuntime
|
|
ignoreBuildErrors: true,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|