mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
360d404555
Co-authored-by: Max Korp <maxkorp@8bytealchemy.com> Co-authored-by: Luis Valdés <luis@copilotkit.ai> Co-authored-by: Ran Shemtov <ran@copilotkit.ai> Co-authored-by: Muhammad Abubakar <abubakaran102025@gmail.com> Co-authored-by: Chan Meng <chanmeng.dev@gmail.com> Co-authored-by: Atai Barkai <atai.barkai@gmail.com> Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Sourabh Bagrecha <sourabhbagrecha@gmail.com> Co-authored-by: Suhas Deshpande <suhasdeshpande@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
252 lines
6.7 KiB
JavaScript
252 lines
6.7 KiB
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
env: {
|
|
RB2B_ID: process.env.RB2B_ID,
|
|
POSTHOG_KEY: process.env.POSTHOG_KEY,
|
|
POSTHOG_HOST: process.env.POSTHOG_HOST,
|
|
SCARF_PIXEL_ID: process.env.SCARF_PIXEL_ID,
|
|
},
|
|
|
|
images: {
|
|
domains: [
|
|
"github-production-user-asset-6210df.s3.amazonaws.com",
|
|
"fonts.gstatic.com",
|
|
"docs.copilotkit.ai",
|
|
"cdn.copilotkit.ai",
|
|
],
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
],
|
|
},
|
|
|
|
skipTrailingSlashRedirect: true,
|
|
skipMiddlewareUrlNormalize: true,
|
|
|
|
// turbopack: true, // Temporarily disabled due to Next.js 15.4.1 compatibility issues
|
|
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/coagents/:path*",
|
|
destination: "/langgraph/:path*",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/tutorials/ai-travel-app/overview",
|
|
destination: "/coagents/tutorials/ai-travel-app",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/chat-ui/hitl/json-hitl",
|
|
destination: "/coagents/chat-ui/hitl",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/react-ui/frontend-functions",
|
|
destination: "/coagents/react-ui/hitl",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/chat-ui/render-agent-state",
|
|
destination: "/coagents/generative-ui/agentic",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/chat-ui/hitl",
|
|
destination: "/coagents/human-in-the-loop/node-flow",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/chat-ui/hitl/interrupt-flow",
|
|
destination: "/coagents/human-in-the-loop/interrupt-flow",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/chat-ui/loading-message-history",
|
|
destination: "/coagents/persistence/loading-message-history",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/react-ui/in-app-agent-read",
|
|
destination: "/coagents/shared-state/in-app-agent-read",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/react-ui/in-app-agent-write",
|
|
destination: "/coagents/shared-state/in-app-agent-write",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/react-ui/hitl",
|
|
destination: "/coagents/human-in-the-loop/node-flow",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/router-mode-agent-lock",
|
|
destination: "/coagents/multi-agent-flows",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/intermediate-state-streaming",
|
|
destination: "/coagents/shared-state/predictive-state-updates",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/shared-state/intermediate-state-streaming",
|
|
destination: "/coagents/shared-state/predictive-state-updates",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/manually-emitting-messages",
|
|
destination: "/coagents/advanced/emit-messages",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/state-streaming",
|
|
destination: "/coagents/shared-state",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/copilotkit-state",
|
|
destination: "/coagents/frontend-actions",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/message-persistence",
|
|
destination: "/coagents/persistence/message-persistence",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/loading-message-history",
|
|
destination: "/coagents/persistence/loading-message-history",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/advanced/loading-agent-state",
|
|
destination: "/coagents/persistence/loading-agent-state",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/concepts/state",
|
|
destination: "/coagents/shared-state",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/concepts/human-in-the-loop",
|
|
destination: "/coagents/human-in-the-loop",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/concepts/multi-agent-flows",
|
|
destination: "/coagents/multi-agent-flows",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/coagents/quickstart/langgraph",
|
|
destination: "/coagents/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/crewai-crews/quickstart/crewai",
|
|
destination: "/crewai-crews/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/crewai-flows/quickstart/crewai",
|
|
destination: "/crewai-flows/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/mastra/quickstart/mastra",
|
|
destination: "/mastra/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/ag2/quickstart/ag2",
|
|
destination: "/ag2/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/llamaindex/",
|
|
destination: "/llamaindex",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/agno/quickstart/agno",
|
|
destination: "/agno/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/mcp",
|
|
destination: "/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/ag2/mcp",
|
|
destination: "/ag2/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/agno/mcp",
|
|
destination: "/agno/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/crewai-crews/mcp",
|
|
destination: "/crewai-crews/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/crewai-flows/mcp",
|
|
destination: "/crewai-flows/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/direct-to-llm/guides/mcp",
|
|
destination: "/direct-to-llm/guides/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/langgraph/mcp",
|
|
destination: "/langgraph/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/llamaindex/mcp",
|
|
destination: "/llamaindex/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/mastra/mcp",
|
|
destination: "/mastra/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/pydantic-ai/mcp",
|
|
destination: "/pydantic-ai/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/adk/quickstart/adk",
|
|
destination: "/adk/quickstart",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/adk/mcp",
|
|
destination: "/adk/vibe-coding-mcp",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|