forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
25 lines (23 loc) · 1.02 KB
/
Copy pathnext.config.ts
File metadata and controls
25 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
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).
NEXT_PUBLIC_COPILOTKIT_THREADS_ENABLED: process.env.COPILOTKIT_LICENSE_TOKEN
? "true"
: "false",
},
typescript: {
// The verbatim demo (useFrontendTool/useRenderToolCall parameter shapes)
// has type drift against the installed @copilotkit/react-core@1.55.2 v2
// typings — the same demo-vs-installed-types mismatch the sibling examples
// (mastra, langgraph-python) absorb with this flag.
ignoreBuildErrors: true,
},
};
export default nextConfig;