Files

17 lines
555 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
typescript: { ignoreBuildErrors: true },
serverExternalPackages: ["@copilotkit/runtime"],
env: {
// NEXT_PUBLIC_* resolves at build time while the Runtime reads the project key
// per request. Provide CPK_INTELLIGENCE_API_KEY during the host build so the
// browser gate matches the managed Runtime configuration.
NEXT_PUBLIC_COPILOTKIT_THREADS_ENABLED: process.env.CPK_INTELLIGENCE_API_KEY
? "true"
: "false",
},
};
export default nextConfig;