Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | import { dirname } from 'path'; |
| 2 | import { fileURLToPath } from 'url'; |
| 3 | import { createMDX } from 'fumadocs-mdx/next'; |
| 4 | import { withEve } from 'eve/next'; |
| 5 | |
| 6 | const __dirname = dirname(fileURLToPath(import.meta.url)); |
| 7 | const withMDX = createMDX(); |
| 8 | const OPENAPI_SPEC_FILES = [ |
| 9 | './public/openapi.json', |
| 10 | './public/openapi-v3.json', |
| 11 | './public/openapi-webhooks.json', |
| 12 | ]; |
| 13 | |
| 14 | /** @type {import('next').NextConfig} */ |
| 15 | const config = { |
| 16 | reactStrictMode: true, |
| 17 | experimental: { |
| 18 | // Toolkit pages hold megabytes of tool and trigger data during generation. |
| 19 | // GitHub Actions needs fewer workers than Vercel's larger build machine. |
| 20 | cpus: process.env.GITHUB_ACTIONS === 'true' ? 2 : 15, |
| 21 | }, |
| 22 | turbopack: { |
| 23 | root: __dirname, |
| 24 | resolveAlias: { |
| 25 | // eve/react pulls in a bundled rolldown helper with a bare, unused |
| 26 | // `import "node:module"`. Turbopack can't keep that as an external in a |
| 27 | // browser chunk, so stub it to an empty module on the browser. |
| 28 | 'node:module': { browser: './lib/eve-empty-module.js' }, |
| 29 | }, |
| 30 | }, |
| 31 | // The OpenAPI specs are loaded at request time via |
| 32 | // `join(process.cwd(), 'public/openapi.json')` (see lib/openapi.ts). Because |
| 33 | // that path is computed, Next.js' file tracer can't statically detect it, so |
| 34 | // the JSON files are NOT bundled into the serverless functions that render |
| 35 | // reference pages and their `/llms.mdx/reference/...` (.md) endpoints. Without |
| 36 | // them present on disk, fumadocs-openapi throws |
| 37 | // `[OpenAPI] Failed to resolve input` and the route 500s in production |
| 38 | // (it works at build time only because `public/` exists at the project root). |
| 39 | // Explicitly trace runtime-loaded corpora into every route that may resolve |
| 40 | // them. The KB repository and search service also read paths assembled from |
| 41 | // manifest data, so relying on automatic tracing would make those bundles |
| 42 | // fragile if their path construction changes. |
| 43 | outputFileTracingIncludes: { |
| 44 | '/sitemap.xml': ['./.generated/content-freshness.json'], |
| 45 | '/reference/**': [...OPENAPI_SPEC_FILES], |
| 46 | '/reference/v3/**': [...OPENAPI_SPEC_FILES], |
| 47 | '/llms.mdx/**': [...OPENAPI_SPEC_FILES, './.generated/content-freshness.json'], |
| 48 | '/llms-full.txt/**': [...OPENAPI_SPEC_FILES], |
| 49 | '/llms.txt/**': [...OPENAPI_SPEC_FILES], |
| 50 | '/llms-index.txt/**': [...OPENAPI_SPEC_FILES, './kb/**'], |
| 51 | '/kb/**': ['./kb/**'], |
| 52 | '/api/knowledge-search/**': [...OPENAPI_SPEC_FILES, './content/**', './kb/**'], |
| 53 | // The OG route reads its fonts and wordmark from disk at request time. |
| 54 | '/api/og/**': ['./app/fonts/Geist*.ttf', './public/Composio Logo*.svg', './public/og/*'], |
| 55 | }, |
| 56 | images: { |
| 57 | // Enable modern image formats for better compression |
| 58 | formats: ['image/avif', 'image/webp'], |
| 59 | // Responsive breakpoints for srcset generation |
| 60 | deviceSizes: [640, 750, 828, 1080, 1200, 1920], |
| 61 | imageSizes: [16, 32, 48, 64, 96, 128, 256, 384], |
| 62 | }, |
| 63 | async rewrites() { |
| 64 | return [ |
| 65 | // Serve markdown for AI agents: /any/path.md → /llms.mdx/any/path |
| 66 | { source: '/:path*.md', destination: '/llms.mdx/:path*' }, |
| 67 | { source: '/:path*.mdx', destination: '/llms.mdx/:path*' }, |
| 68 | ]; |
| 69 | }, |
| 70 | async redirects() { |
| 71 | return [ |
| 72 | // Vendor security review now lives in docs; preserve KB aliases and Markdown URLs. |
| 73 | ...[ |
| 74 | '/kb/guide/platform-compliance-data-handling', |
| 75 | '/kb/security-and-trust/platform-compliance-data-handling', |
| 76 | '/kb/sdk-and-api/platform-compliance-data-handling', |
| 77 | '/kb/guide/canonical-public-sources', |
| 78 | '/kb/guide/model-training', |
| 79 | '/kb/guide/third-party-providers', |
| 80 | '/kb/guide/zero-data-retention-and-no-training-requirements', |
| 81 | ].flatMap(source => [ |
| 82 | { source, destination: '/docs/security/vendor-security-review', permanent: true }, |
| 83 | { source: `${source}.md`, destination: '/docs/security/vendor-security-review.md', permanent: true }, |
| 84 | { source: `${source}.mdx`, destination: '/docs/security/vendor-security-review.md', permanent: true }, |
| 85 | { source: `/llms.mdx${source}`, destination: '/docs/security/vendor-security-review.md', permanent: true }, |
| 86 | ]), |
| 87 | // === Docs v3 reorganization redirects (auto-generated: route moves vs pre-reorg) === |
| 88 | // Renamed/moved pages -> new location |
| 89 | { |
| 90 | source: '/docs/observability/logs', |
| 91 | destination: '/reference/api-reference/logs', |
| 92 | permanent: true, |
| 93 | }, |
| 94 | { |
| 95 | source: '/reference/sdk-reference/python/tool-router-session', |
| 96 | destination: '/reference/sdk-reference/python/session', |
| 97 | permanent: true, |
| 98 | }, |
| 99 | { |
| 100 | source: '/reference/sdk-reference/typescript/tool-router-session-files-mount', |
| 101 | destination: '/reference/sdk-reference/typescript/session-files', |
| 102 | permanent: true, |
| 103 | }, |
| 104 | { |
| 105 | source: '/reference/sdk-reference/typescript/tool-router-session', |
| 106 | destination: '/reference/sdk-reference/typescript/session', |
| 107 | permanent: true, |
| 108 | }, |
| 109 | { |
| 110 | source: '/toolkits/:legacy(pro-tools|premium-tools)', |
| 111 | destination: '/docs/instant-tools', |
| 112 | permanent: true, |
| 113 | }, |
| 114 | { |
| 115 | source: '/toolkits/:legacy(pro-tools|premium-tools).:format(md|mdx)', |
| 116 | destination: '/docs/instant-tools.md', |
| 117 | permanent: true, |
| 118 | }, |
| 119 | // Deleted/merged pages -> closest surviving page (semantically resolved + verified) |
| 120 | { |
| 121 | source: '/docs/authenticating-users/in-chat-authentication', |
| 122 | destination: '/docs/authentication', |
| 123 | permanent: true, |
| 124 | }, |
| 125 | { |
| 126 | source: '/docs/common-faq', |
| 127 | destination: '/docs', |
| 128 | permanent: true, |
| 129 | }, |
| 130 | { |
| 131 | source: '/docs/debugging-info', |
| 132 | destination: '/reference/errors', |
| 133 | permanent: true, |
| 134 | }, |
| 135 | { |
| 136 | source: '/docs/glossary', |
| 137 | destination: '/reference/glossary', |
| 138 | permanent: true, |
| 139 | }, |
| 140 | { |
| 141 | source: '/docs/native-tools-vs-mcp', |
| 142 | destination: '/docs/sessions-via-mcp', |
| 143 | permanent: true, |
| 144 | }, |
| 145 | { |
| 146 | source: '/docs/observability', |
| 147 | destination: '/reference/api-reference/logs', |
| 148 | permanent: true, |
| 149 | }, |
| 150 | { |
| 151 | source: '/docs/observability/usage', |
| 152 | destination: '/reference/api-reference/organization', |
| 153 | permanent: true, |
| 154 | }, |
| 155 | { |
| 156 | source: '/docs/projects', |
| 157 | destination: '/reference/api-reference/projects', |
| 158 | permanent: true, |
| 159 | }, |
| 160 | { |
| 161 | source: '/docs/signing-up-as-an-agent', |
| 162 | destination: '/docs/cli', |
| 163 | permanent: true, |
| 164 | }, |
| 165 | { |
| 166 | source: '/docs/subscribing-to-connection-expiry-events', |
| 167 | destination: '/docs/setting-up-triggers/subscribing-to-events', |
| 168 | permanent: true, |
| 169 | }, |
| 170 | { |
| 171 | source: '/docs/toolkits/enable-and-disable-toolkits', |
| 172 | destination: '/docs/configuring-sessions', |
| 173 | permanent: true, |
| 174 | }, |
| 175 | { |
| 176 | source: '/docs/toolkits/fetching-tools-and-toolkits', |
| 177 | destination: '/docs/configuring-sessions', |
| 178 | permanent: true, |
| 179 | }, |
| 180 | { |
| 181 | source: '/docs/tools-and-toolkits', |
| 182 | destination: '/docs/how-composio-works', |
| 183 | permanent: true, |
| 184 | }, |
| 185 | { |
| 186 | source: '/docs/webhook-verification', |
| 187 | destination: '/docs/setting-up-triggers/subscribing-to-events', |
| 188 | permanent: true, |
| 189 | }, |
| 190 | { |
| 191 | source: '/reference/api-reference/authentication', |
| 192 | destination: '/reference/authenticating-to-composio', |
| 193 | permanent: true, |
| 194 | }, |
| 195 | { |
| 196 | source: '/reference/sdk-reference/python/session-context-impl', |
| 197 | destination: '/reference/sdk-reference/python/session', |
| 198 | permanent: true, |
| 199 | }, |
| 200 | { |
| 201 | source: '/reference/sdk-reference/typescript/session-context-impl', |
| 202 | destination: '/reference/sdk-reference/typescript/session', |
| 203 | permanent: true, |
| 204 | }, |
| 205 | { |
| 206 | source: '/reference/v3/api-reference/authentication', |
| 207 | destination: '/reference/v3/authentication', |
| 208 | permanent: true, |
| 209 | }, |
| 210 | // === end docs v3 reorganization redirects === |
| 211 | // Governance guides moved to a shared route namespace. |
| 212 | { |
| 213 | source: '/docs/tool-tags', |
| 214 | destination: '/docs/governance/tool-hints', |
| 215 | permanent: true, |
| 216 | }, |
| 217 | { |
| 218 | source: '/docs/tool-tags.:format(md|mdx)', |
| 219 | destination: '/docs/governance/tool-hints.md', |
| 220 | permanent: true, |
| 221 | }, |
| 222 | { |
| 223 | source: '/docs/approvals', |
| 224 | destination: '/docs/governance/approvals', |
| 225 | permanent: true, |
| 226 | }, |
| 227 | { |
| 228 | source: '/docs/approvals.:format(md|mdx)', |
| 229 | destination: '/docs/governance/approvals.md', |
| 230 | permanent: true, |
| 231 | }, |
| 232 | { |
| 233 | source: '/', |
| 234 | destination: '/docs', |
| 235 | permanent: false, |
| 236 | }, |
| 237 | // Meta Tools moved from the Reference tab to the Toolkits tab. |
| 238 | { |
| 239 | source: '/reference/meta-tools', |
| 240 | destination: '/toolkits/meta-tools', |
| 241 | permanent: true, |
| 242 | }, |
| 243 | { |
| 244 | source: '/reference/meta-tools/:path*', |
| 245 | destination: '/toolkits/meta-tools/:path*', |
| 246 | permanent: true, |
| 247 | }, |
| 248 | // Cookbooks were renamed to Examples; the old articles were removed, |
| 249 | // so send every old /cookbooks URL to the Examples index. |
| 250 | { |
| 251 | source: '/cookbooks', |
| 252 | destination: '/examples', |
| 253 | permanent: true, |
| 254 | }, |
| 255 | { |
| 256 | source: '/cookbooks/:path*', |
| 257 | destination: '/examples', |
| 258 | permanent: true, |
| 259 | }, |
| 260 | { |
| 261 | source: '/docs/welcome', |
| 262 | destination: '/docs', |
| 263 | permanent: true, |
| 264 | }, |
| 265 | // The workbench was renamed to the sandbox; keep old links working. |
| 266 | { |
| 267 | source: '/docs/workbench', |
| 268 | destination: '/docs/sandbox/remote', |
| 269 | permanent: true, |
| 270 | }, |
| 271 | // The sandbox page became a section (remote + local); keep the old URL working. |
| 272 | { |
| 273 | source: '/docs/sandbox', |
| 274 | destination: '/docs/sandbox/remote', |
| 275 | permanent: true, |
| 276 | }, |
| 277 | // Preserve machine-readable release notes before the legacy HTML redirects. |
| 278 | { |
| 279 | source: '/docs/changelog/:path*.md', |
| 280 | destination: '/llms.mdx/docs/changelog/:path*', |
| 281 | permanent: true, |
| 282 | }, |
| 283 | { |
| 284 | source: '/docs/changelog/:path*.mdx', |
| 285 | destination: '/llms.mdx/docs/changelog/:path*', |
| 286 | permanent: true, |
| 287 | }, |
| 288 | { |
| 289 | source: '/docs/changelog', |
| 290 | destination: '/reference/changelog', |
| 291 | permanent: true, |
| 292 | }, |
| 293 | { |
| 294 | source: '/docs/changelog/:year/:month/:day', |
| 295 | destination: '/reference/changelog#:year-:month-:day', |
| 296 | permanent: true, |
| 297 | }, |
| 298 | { |
| 299 | source: '/reference/changelog/:year/:month/:day', |
| 300 | destination: '/reference/changelog#:year-:month-:day', |
| 301 | permanent: true, |
| 302 | }, |
| 303 | { |
| 304 | source: '/docs/changelog/:path*', |
| 305 | destination: '/reference/changelog', |
| 306 | permanent: true, |
| 307 | }, |
| 308 | { |
| 309 | source: '/getting-started/welcome', |
| 310 | destination: '/docs', |
| 311 | permanent: true, |
| 312 | }, |
| 313 | { |
| 314 | source: '/getting-started/:path*', |
| 315 | destination: '/docs', |
| 316 | permanent: true, |
| 317 | }, |
| 318 | { |
| 319 | source: '/tool-router', |
| 320 | destination: '/docs/quickstart', |
| 321 | permanent: true, |
| 322 | }, |
| 323 | { |
| 324 | source: '/tool-router/overview', |
| 325 | destination: '/docs/quickstart', |
| 326 | permanent: true, |
| 327 | }, |
| 328 | { |
| 329 | source: '/tool-router/quickstart', |
| 330 | destination: '/docs/quickstart', |
| 331 | permanent: true, |
| 332 | }, |
| 333 | // Core concepts moved from tool-router to docs |
| 334 | { |
| 335 | source: '/tool-router/users-and-sessions', |
| 336 | destination: '/docs/how-composio-works', |
| 337 | permanent: true, |
| 338 | }, |
| 339 | { |
| 340 | source: '/tool-router/migration-guide', |
| 341 | destination: '/docs/migration-guide/tool-router-beta', |
| 342 | permanent: true, |
| 343 | }, |
| 344 | { |
| 345 | source: '/tool-router/migration-guide/beta-to-stable', |
| 346 | destination: '/docs/migration-guide/tool-router-beta', |
| 347 | permanent: true, |
| 348 | }, |
| 349 | { |
| 350 | source: '/tool-router/authentication', |
| 351 | destination: '/docs/authentication', |
| 352 | permanent: true, |
| 353 | }, |
| 354 | { |
| 355 | source: '/tool-router/tools-and-toolkits', |
| 356 | destination: '/docs/how-composio-works', |
| 357 | permanent: true, |
| 358 | }, |
| 359 | // Authentication pages moved from tool-router to docs |
| 360 | { |
| 361 | source: '/tool-router/using-in-chat-authentication', |
| 362 | destination: '/docs/authentication#in-chat-authentication', |
| 363 | permanent: true, |
| 364 | }, |
| 365 | { |
| 366 | source: '/tool-router/manually-authenticating-users', |
| 367 | destination: '/docs/authentication/manually-authenticating', |
| 368 | permanent: true, |
| 369 | }, |
| 370 | { |
| 371 | source: '/tool-router/using-custom-auth-configs', |
| 372 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 373 | permanent: true, |
| 374 | }, |
| 375 | { |
| 376 | source: '/docs/authenticating-users/using-custom-auth-configs', |
| 377 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 378 | permanent: true, |
| 379 | }, |
| 380 | { |
| 381 | source: '/tool-router/white-labeling-authentication', |
| 382 | destination: '/docs/authentication/white-labeling-authentication', |
| 383 | permanent: true, |
| 384 | }, |
| 385 | { |
| 386 | source: '/tool-router/managing-multiple-accounts', |
| 387 | destination: '/docs/authentication/managing-multiple-connected-accounts', |
| 388 | permanent: true, |
| 389 | }, |
| 390 | // Provider redirects (old fern URLs -> new docs URLs) |
| 391 | { |
| 392 | source: '/providers/openai', |
| 393 | destination: '/docs/providers/openai', |
| 394 | permanent: true, |
| 395 | }, |
| 396 | { |
| 397 | source: '/providers/anthropic', |
| 398 | destination: '/docs/providers/anthropic', |
| 399 | permanent: true, |
| 400 | }, |
| 401 | { |
| 402 | source: '/providers/google', |
| 403 | destination: '/docs/providers/google', |
| 404 | permanent: true, |
| 405 | }, |
| 406 | { |
| 407 | source: '/providers/google-adk', |
| 408 | destination: '/docs/providers/google', |
| 409 | permanent: true, |
| 410 | }, |
| 411 | { |
| 412 | source: '/docs/providers/google-adk', |
| 413 | destination: '/docs/providers/google', |
| 414 | permanent: true, |
| 415 | }, |
| 416 | { |
| 417 | source: '/providers/langchain', |
| 418 | destination: '/docs/providers/langchain', |
| 419 | permanent: true, |
| 420 | }, |
| 421 | { |
| 422 | source: '/providers/llamaindex', |
| 423 | destination: '/docs/providers/llamaindex', |
| 424 | permanent: true, |
| 425 | }, |
| 426 | { |
| 427 | source: '/providers/crewai', |
| 428 | destination: '/docs/providers/crewai', |
| 429 | permanent: true, |
| 430 | }, |
| 431 | { |
| 432 | source: '/providers/vercel', |
| 433 | destination: '/docs/providers/vercel', |
| 434 | permanent: true, |
| 435 | }, |
| 436 | { |
| 437 | source: '/providers/openai-agents', |
| 438 | destination: '/docs/providers/openai', |
| 439 | permanent: true, |
| 440 | }, |
| 441 | { |
| 442 | source: '/providers/claude-agent-sdk', |
| 443 | destination: '/docs/providers/anthropic', |
| 444 | permanent: true, |
| 445 | }, |
| 446 | { |
| 447 | source: '/docs/providers/openai-agents', |
| 448 | destination: '/docs/providers/openai', |
| 449 | permanent: true, |
| 450 | }, |
| 451 | { |
| 452 | source: '/docs/providers/claude-agent-sdk', |
| 453 | destination: '/docs/providers/anthropic', |
| 454 | permanent: true, |
| 455 | }, |
| 456 | { |
| 457 | source: '/providers/langgraph', |
| 458 | destination: '/docs/providers/langchain', |
| 459 | permanent: true, |
| 460 | }, |
| 461 | { |
| 462 | source: '/docs/providers/langgraph', |
| 463 | destination: '/docs/providers/langchain', |
| 464 | permanent: true, |
| 465 | }, |
| 466 | { |
| 467 | source: '/providers/mastra', |
| 468 | destination: '/docs/providers/mastra', |
| 469 | permanent: true, |
| 470 | }, |
| 471 | { |
| 472 | source: '/providers/custom/typescript', |
| 473 | destination: '/docs/providers/custom-providers/typescript', |
| 474 | permanent: true, |
| 475 | }, |
| 476 | { |
| 477 | source: '/providers/custom/python', |
| 478 | destination: '/docs/providers/custom-providers/python', |
| 479 | permanent: true, |
| 480 | }, |
| 481 | // API reference redirects |
| 482 | { |
| 483 | source: '/api-reference', |
| 484 | destination: '/reference', |
| 485 | permanent: true, |
| 486 | }, |
| 487 | // Old Fern API endpoint URLs with kebab-case operationIds |
| 488 | // e.g. /api-reference/tools/post-tools-execute-by-tool-slug |
| 489 | // proxy.ts handles kebab-to-camelCase conversion |
| 490 | { |
| 491 | source: '/api-reference/:tag/:operationId', |
| 492 | destination: '/reference/api-reference/:tag/:operationId', |
| 493 | permanent: true, |
| 494 | }, |
| 495 | { |
| 496 | source: '/api-reference/:path*', |
| 497 | destination: '/reference/:path*', |
| 498 | permanent: true, |
| 499 | }, |
| 500 | { |
| 501 | source: '/rest-api/:path*', |
| 502 | destination: '/reference/api-reference/:path*', |
| 503 | permanent: true, |
| 504 | }, |
| 505 | // Programmatic auth configs consolidated into the Customizing auth section |
| 506 | { |
| 507 | source: '/docs/auth-configuration/programmatic-auth-configs', |
| 508 | destination: '/docs/authentication/programmatic-auth-configs', |
| 509 | permanent: true, |
| 510 | }, |
| 511 | // Authenticating users folder flattened into the Authenticate users section |
| 512 | { |
| 513 | source: '/docs/authenticating-users/manually-authenticating', |
| 514 | destination: '/docs/authentication/manually-authenticating', |
| 515 | permanent: true, |
| 516 | }, |
| 517 | { |
| 518 | source: '/docs/authenticating-users/managing-multiple-connected-accounts', |
| 519 | destination: '/docs/authentication/managing-multiple-connected-accounts', |
| 520 | permanent: true, |
| 521 | }, |
| 522 | { |
| 523 | source: '/docs/authenticating-users/shared-connections', |
| 524 | destination: '/docs/extending-sessions/shared-connections', |
| 525 | permanent: true, |
| 526 | }, |
| 527 | // Auth guides regrouped under the Authentication folder; shared connections |
| 528 | // moved to Extend sessions. These sources carry 36-42% Google entry traffic. |
| 529 | { |
| 530 | source: '/docs/manually-authenticating', |
| 531 | destination: '/docs/authentication/manually-authenticating', |
| 532 | permanent: true, |
| 533 | }, |
| 534 | { |
| 535 | source: '/docs/managing-multiple-connected-accounts', |
| 536 | destination: '/docs/authentication/managing-multiple-connected-accounts', |
| 537 | permanent: true, |
| 538 | }, |
| 539 | { |
| 540 | source: '/docs/importing-existing-connections', |
| 541 | destination: '/docs/authentication/importing-existing-connections', |
| 542 | permanent: true, |
| 543 | }, |
| 544 | { |
| 545 | source: '/docs/custom-app-vs-managed-app', |
| 546 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 547 | permanent: true, |
| 548 | }, |
| 549 | { |
| 550 | source: '/docs/programmatic-auth-configs', |
| 551 | destination: '/docs/authentication/programmatic-auth-configs', |
| 552 | permanent: true, |
| 553 | }, |
| 554 | { |
| 555 | source: '/docs/controlling-scopes', |
| 556 | destination: '/docs/authentication/controlling-scopes', |
| 557 | permanent: true, |
| 558 | }, |
| 559 | { |
| 560 | source: '/docs/white-labeling-authentication', |
| 561 | destination: '/docs/authentication/white-labeling-authentication', |
| 562 | permanent: true, |
| 563 | }, |
| 564 | { |
| 565 | source: '/docs/shared-connections', |
| 566 | destination: '/docs/extending-sessions/shared-connections', |
| 567 | permanent: true, |
| 568 | }, |
| 569 | // Authentication reference renamed to "Authenticating to Composio" |
| 570 | { |
| 571 | source: '/reference/authentication', |
| 572 | destination: '/reference/authenticating-to-composio', |
| 573 | permanent: true, |
| 574 | }, |
| 575 | { |
| 576 | source: '/reference/authentication/:path*', |
| 577 | destination: '/reference/authenticating-to-composio/:path*', |
| 578 | permanent: true, |
| 579 | }, |
| 580 | // Features section redirects |
| 581 | { |
| 582 | source: '/docs/users-and-sessions', |
| 583 | destination: '/docs/how-composio-works', |
| 584 | permanent: true, |
| 585 | }, |
| 586 | { |
| 587 | source: '/docs/user-management', |
| 588 | destination: '/docs/how-composio-works#users', |
| 589 | permanent: true, |
| 590 | }, |
| 591 | { |
| 592 | source: '/docs/using-triggers', |
| 593 | destination: '/docs/setting-up-triggers/creating-triggers', |
| 594 | permanent: true, |
| 595 | }, |
| 596 | { |
| 597 | source: '/triggers', |
| 598 | destination: '/docs/triggers', |
| 599 | permanent: true, |
| 600 | }, |
| 601 | { |
| 602 | source: '/docs/how-tools-work', |
| 603 | destination: '/docs/how-composio-works', |
| 604 | permanent: true, |
| 605 | }, |
| 606 | { |
| 607 | source: '/features/authentication', |
| 608 | destination: '/docs/authentication', |
| 609 | permanent: true, |
| 610 | }, |
| 611 | { |
| 612 | source: '/features/triggers', |
| 613 | destination: '/docs/triggers', |
| 614 | permanent: true, |
| 615 | }, |
| 616 | { |
| 617 | source: '/docs/mcp-quickstart', |
| 618 | destination: '/docs/single-toolkit-mcp', |
| 619 | permanent: true, |
| 620 | }, |
| 621 | { |
| 622 | source: '/docs/mcp-server-management', |
| 623 | destination: '/docs/single-toolkit-mcp', |
| 624 | permanent: true, |
| 625 | }, |
| 626 | { |
| 627 | source: '/docs/mcp/:path*', |
| 628 | destination: '/docs/single-toolkit-mcp', |
| 629 | permanent: true, |
| 630 | }, |
| 631 | // Tools section moved to tools-direct folder |
| 632 | { |
| 633 | source: '/docs/fetching-tools', |
| 634 | destination: '/docs/tools-direct/fetching-tools', |
| 635 | permanent: true, |
| 636 | }, |
| 637 | { |
| 638 | source: '/docs/authenticating-tools', |
| 639 | destination: '/docs/tools-direct/authenticating-tools', |
| 640 | permanent: true, |
| 641 | }, |
| 642 | { |
| 643 | source: '/docs/executing-tools', |
| 644 | destination: '/docs/tools-direct/executing-tools', |
| 645 | permanent: true, |
| 646 | }, |
| 647 | { |
| 648 | source: '/docs/modify-tool-behavior/:path*', |
| 649 | destination: '/docs/tools-direct/modify-tool-behavior/:path*', |
| 650 | permanent: true, |
| 651 | }, |
| 652 | // Custom tools and proxy execute moved under the Extending sessions section. |
| 653 | { |
| 654 | source: '/docs/custom-tools-and-toolkits', |
| 655 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 656 | permanent: true, |
| 657 | }, |
| 658 | { |
| 659 | source: '/docs/toolkits/custom-tools-and-toolkits', |
| 660 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 661 | permanent: true, |
| 662 | }, |
| 663 | // Custom Tools and Toolkits was renamed to Local Tools and Toolkits. |
| 664 | { |
| 665 | source: '/docs/extending-sessions/custom-tools-and-toolkits', |
| 666 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 667 | permanent: true, |
| 668 | }, |
| 669 | { |
| 670 | source: '/docs/extending-sessions/custom-tools-and-toolkits.:format(md|mdx)', |
| 671 | destination: '/docs/extending-sessions/local-tools-and-toolkits.md', |
| 672 | permanent: true, |
| 673 | }, |
| 674 | { |
| 675 | source: '/docs/proxy-execute', |
| 676 | destination: '/docs/extending-sessions/proxy-execute', |
| 677 | permanent: true, |
| 678 | }, |
| 679 | { |
| 680 | source: '/docs/custom-tools', |
| 681 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 682 | permanent: true, |
| 683 | }, |
| 684 | { |
| 685 | source: '/docs/tools-direct/custom-tools', |
| 686 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 687 | permanent: true, |
| 688 | }, |
| 689 | { |
| 690 | source: '/docs/tools-direct/custom-tools/:path*', |
| 691 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 692 | permanent: true, |
| 693 | }, |
| 694 | { |
| 695 | source: '/docs/toolkit-versioning', |
| 696 | destination: '/docs/tools-direct/toolkit-versioning', |
| 697 | permanent: true, |
| 698 | }, |
| 699 | // Authentication section moved to auth-configuration folder |
| 700 | { |
| 701 | source: '/docs/custom-auth-configs', |
| 702 | destination: '/docs/auth-configuration/custom-auth-configs', |
| 703 | permanent: true, |
| 704 | }, |
| 705 | { |
| 706 | source: '/docs/custom-auth-params', |
| 707 | destination: '/docs/auth-configuration/custom-auth-params', |
| 708 | permanent: true, |
| 709 | }, |
| 710 | { |
| 711 | source: '/docs/connected-accounts', |
| 712 | destination: '/docs/auth-configuration/connected-accounts', |
| 713 | permanent: true, |
| 714 | }, |
| 715 | // /tools → /toolkits |
| 716 | { |
| 717 | source: '/tools', |
| 718 | destination: '/toolkits', |
| 719 | permanent: true, |
| 720 | }, |
| 721 | // /tools/* → /toolkits/* |
| 722 | { |
| 723 | source: '/tools/:path*', |
| 724 | destination: '/toolkits/:path*', |
| 725 | permanent: true, |
| 726 | }, |
| 727 | // Old Fern documentation URLs |
| 728 | { |
| 729 | source: '/introduction/foundations/components/triggers/trigger-guide', |
| 730 | destination: '/docs/triggers', |
| 731 | permanent: true, |
| 732 | }, |
| 733 | { |
| 734 | source: '/toolkits/introduction', |
| 735 | destination: '/docs/how-composio-works', |
| 736 | permanent: true, |
| 737 | }, |
| 738 | { |
| 739 | source: '/apps/usecases/crewai/:path*', |
| 740 | destination: '/docs/providers/crewai', |
| 741 | permanent: true, |
| 742 | }, |
| 743 | { |
| 744 | source: '/js-sdk/tools/execute', |
| 745 | destination: '/docs/tools-direct/executing-tools', |
| 746 | permanent: true, |
| 747 | }, |
| 748 | { |
| 749 | source: '/frameworks/others/:path*', |
| 750 | destination: '/docs/providers', |
| 751 | permanent: true, |
| 752 | }, |
| 753 | { |
| 754 | source: '/guides/examples/:path*', |
| 755 | destination: '/examples', |
| 756 | permanent: true, |
| 757 | }, |
| 758 | { |
| 759 | source: '/custom-tools/:path*', |
| 760 | destination: '/docs/extending-sessions/local-tools-and-toolkits', |
| 761 | permanent: true, |
| 762 | }, |
| 763 | // Error handling redirect (old fern URL) |
| 764 | { |
| 765 | source: '/errors/error-handling', |
| 766 | destination: '/reference/errors', |
| 767 | permanent: true, |
| 768 | }, |
| 769 | // Old Fern introduction/overview pages |
| 770 | { |
| 771 | source: '/introduction/intro/overview', |
| 772 | destination: '/docs', |
| 773 | permanent: true, |
| 774 | }, |
| 775 | { |
| 776 | source: '/introduction/intro/quickstart-tools', |
| 777 | destination: '/docs/quickstart', |
| 778 | permanent: true, |
| 779 | }, |
| 780 | { |
| 781 | source: '/introduction/:path*', |
| 782 | destination: '/docs', |
| 783 | permanent: true, |
| 784 | }, |
| 785 | // Old tool-calling section |
| 786 | { |
| 787 | source: '/tool-calling/processing-tools', |
| 788 | destination: '/docs/tools-direct/executing-tools', |
| 789 | permanent: true, |
| 790 | }, |
| 791 | { |
| 792 | source: '/tool-calling/introduction', |
| 793 | destination: '/docs/how-composio-works', |
| 794 | permanent: true, |
| 795 | }, |
| 796 | { |
| 797 | source: '/tool-calling/:path*', |
| 798 | destination: '/docs/how-composio-works', |
| 799 | permanent: true, |
| 800 | }, |
| 801 | // Old framework pages |
| 802 | { |
| 803 | source: '/framework/crewai', |
| 804 | destination: '/docs/providers/crewai', |
| 805 | permanent: true, |
| 806 | }, |
| 807 | { |
| 808 | source: '/framework/autogen', |
| 809 | destination: '/docs/providers', |
| 810 | permanent: true, |
| 811 | }, |
| 812 | { |
| 813 | source: '/framework/:path*', |
| 814 | destination: '/docs/providers', |
| 815 | permanent: true, |
| 816 | }, |
| 817 | // Old SDK reference pages |
| 818 | { |
| 819 | source: '/python-sdk-reference', |
| 820 | destination: '/reference', |
| 821 | permanent: true, |
| 822 | }, |
| 823 | { |
| 824 | source: '/python/introduction', |
| 825 | destination: '/docs', |
| 826 | permanent: true, |
| 827 | }, |
| 828 | { |
| 829 | source: '/python/:path*', |
| 830 | destination: '/docs', |
| 831 | permanent: true, |
| 832 | }, |
| 833 | // Authentication (bare path without /docs prefix) |
| 834 | { |
| 835 | source: '/authentication', |
| 836 | destination: '/docs/authentication', |
| 837 | permanent: true, |
| 838 | }, |
| 839 | // Changelog (bare path without /docs prefix) |
| 840 | { |
| 841 | source: '/changelog/api-v-3-migration', |
| 842 | destination: '/docs/changelog', |
| 843 | permanent: true, |
| 844 | }, |
| 845 | { |
| 846 | source: '/changelog', |
| 847 | destination: '/docs/changelog', |
| 848 | permanent: true, |
| 849 | }, |
| 850 | { |
| 851 | source: '/changelog/:path*', |
| 852 | destination: '/docs/changelog', |
| 853 | permanent: true, |
| 854 | }, |
| 855 | // MCP pages |
| 856 | { |
| 857 | source: '/mcp/overview', |
| 858 | destination: '/docs/single-toolkit-mcp', |
| 859 | permanent: true, |
| 860 | }, |
| 861 | { |
| 862 | source: '/mcp/:path*', |
| 863 | destination: '/docs/single-toolkit-mcp', |
| 864 | permanent: true, |
| 865 | }, |
| 866 | { |
| 867 | source: '/docs/mcp-providers', |
| 868 | destination: '/docs/single-toolkit-mcp', |
| 869 | permanent: true, |
| 870 | }, |
| 871 | // Patterns section (old Fern) |
| 872 | { |
| 873 | source: '/patterns/triggers/webhooks', |
| 874 | destination: '/docs/triggers', |
| 875 | permanent: true, |
| 876 | }, |
| 877 | { |
| 878 | source: '/patterns/:path*', |
| 879 | destination: '/docs', |
| 880 | permanent: true, |
| 881 | }, |
| 882 | // Guides case studies |
| 883 | { |
| 884 | source: '/guides/casestudy/:path*', |
| 885 | destination: '/examples', |
| 886 | permanent: true, |
| 887 | }, |
| 888 | // Docs pages that moved or don't exist |
| 889 | { |
| 890 | source: '/docs/getting-started', |
| 891 | destination: '/docs/quickstart', |
| 892 | permanent: true, |
| 893 | }, |
| 894 | { |
| 895 | source: '/docs/resources/:path*', |
| 896 | destination: '/docs', |
| 897 | permanent: true, |
| 898 | }, |
| 899 | { |
| 900 | source: '/docs/migration', |
| 901 | destination: '/docs/migration-guide/tool-router-beta', |
| 902 | permanent: true, |
| 903 | }, |
| 904 | { |
| 905 | source: '/docs/tools', |
| 906 | destination: '/docs/how-composio-works', |
| 907 | permanent: true, |
| 908 | }, |
| 909 | { |
| 910 | source: '/docs/tool-router/quick-start', |
| 911 | destination: '/docs/quickstart', |
| 912 | permanent: true, |
| 913 | }, |
| 914 | { |
| 915 | source: '/docs/managed-authentication', |
| 916 | destination: '/docs/authentication', |
| 917 | permanent: true, |
| 918 | }, |
| 919 | { |
| 920 | source: '/docs/dev-setup', |
| 921 | destination: '/docs/quickstart', |
| 922 | permanent: true, |
| 923 | }, |
| 924 | // Removed: /docs/providers now has its own index page |
| 925 | { |
| 926 | source: '/docs/providers/custom-providers/my-ai-provider', |
| 927 | destination: '/docs/providers/custom-providers/typescript', |
| 928 | permanent: true, |
| 929 | }, |
| 930 | // Old Fern v-3 paths (different hyphenation) |
| 931 | { |
| 932 | source: '/reference/v-3/:path*', |
| 933 | destination: '/reference', |
| 934 | permanent: true, |
| 935 | }, |
| 936 | // Old Fern SDK reference URLs (no content exists at these paths) |
| 937 | { |
| 938 | source: '/type-script/:path*', |
| 939 | destination: '/reference', |
| 940 | permanent: true, |
| 941 | }, |
| 942 | { |
| 943 | source: '/sdk-reference/:path*', |
| 944 | destination: '/reference', |
| 945 | permanent: true, |
| 946 | }, |
| 947 | { |
| 948 | source: '/sdk/:path*', |
| 949 | destination: '/reference', |
| 950 | permanent: true, |
| 951 | }, |
| 952 | { |
| 953 | source: '/js-sdk/:path*', |
| 954 | destination: '/reference', |
| 955 | permanent: true, |
| 956 | }, |
| 957 | { |
| 958 | source: '/js/:path*', |
| 959 | destination: '/reference', |
| 960 | permanent: true, |
| 961 | }, |
| 962 | // Old Fern example URLs (specific redirect moved above catch-all) |
| 963 | // Old /docs/frameworks/* paths (now /docs/providers/*) |
| 964 | // e.g. /docs/frameworks/claude-code → /docs/providers/anthropic |
| 965 | { |
| 966 | source: '/docs/frameworks/claude-code', |
| 967 | destination: '/docs/providers/anthropic', |
| 968 | permanent: true, |
| 969 | }, |
| 970 | { |
| 971 | source: '/docs/frameworks/claude', |
| 972 | destination: '/docs/providers/anthropic', |
| 973 | permanent: true, |
| 974 | }, |
| 975 | { |
| 976 | source: '/docs/frameworks/:path*', |
| 977 | destination: '/docs/providers', |
| 978 | permanent: true, |
| 979 | }, |
| 980 | { |
| 981 | source: '/frameworks/:path*', |
| 982 | destination: '/docs/providers', |
| 983 | permanent: true, |
| 984 | }, |
| 985 | // Old /apps/* paths (now /toolkits/*) |
| 986 | { |
| 987 | source: '/apps', |
| 988 | destination: '/toolkits', |
| 989 | permanent: true, |
| 990 | }, |
| 991 | { |
| 992 | source: '/apps/usecases/:path*', |
| 993 | destination: '/examples', |
| 994 | permanent: true, |
| 995 | }, |
| 996 | { |
| 997 | source: '/apps/:path*', |
| 998 | destination: '/toolkits/:path*', |
| 999 | permanent: true, |
| 1000 | }, |
| 1001 | // Tool router pages that still 404 |
| 1002 | { |
| 1003 | source: '/tool-router/using-as-a-native-tool', |
| 1004 | destination: '/docs/quickstart', |
| 1005 | permanent: true, |
| 1006 | }, |
| 1007 | { |
| 1008 | source: '/tool-router/using-with-mcp-clients', |
| 1009 | destination: '/docs/quickstart', |
| 1010 | permanent: true, |
| 1011 | }, |
| 1012 | { |
| 1013 | source: '/tool-router/:path*', |
| 1014 | destination: '/docs/quickstart', |
| 1015 | permanent: true, |
| 1016 | }, |
| 1017 | // Docs pages that moved (confirmed real 404s from Datadog) |
| 1018 | { |
| 1019 | source: '/docs/authenticating-users', |
| 1020 | destination: '/docs/tools-direct/authenticating-tools', |
| 1021 | permanent: true, |
| 1022 | }, |
| 1023 | { |
| 1024 | source: '/docs/introduction/intro', |
| 1025 | destination: '/docs', |
| 1026 | permanent: true, |
| 1027 | }, |
| 1028 | { |
| 1029 | source: '/docs/introduction/:path*', |
| 1030 | destination: '/docs', |
| 1031 | permanent: true, |
| 1032 | }, |
| 1033 | { |
| 1034 | source: '/docs/tools/modify/:path*', |
| 1035 | destination: '/docs/tools-direct/modify-tool-behavior', |
| 1036 | permanent: true, |
| 1037 | }, |
| 1038 | { |
| 1039 | source: '/docs/mcp-overview', |
| 1040 | destination: '/docs/single-toolkit-mcp', |
| 1041 | permanent: true, |
| 1042 | }, |
| 1043 | { |
| 1044 | source: '/docs/what-is-mcp', |
| 1045 | destination: '/docs/single-toolkit-mcp', |
| 1046 | permanent: true, |
| 1047 | }, |
| 1048 | { |
| 1049 | source: '/docs/mcp-authentication', |
| 1050 | destination: '/docs/authentication', |
| 1051 | permanent: true, |
| 1052 | }, |
| 1053 | { |
| 1054 | source: '/docs/mcp-partner-api', |
| 1055 | destination: '/docs/single-toolkit-mcp', |
| 1056 | permanent: true, |
| 1057 | }, |
| 1058 | { |
| 1059 | source: '/docs/migration-guide/overview', |
| 1060 | destination: '/docs/migration-guide', |
| 1061 | permanent: true, |
| 1062 | }, |
| 1063 | { |
| 1064 | source: '/docs/modifiers/:path*', |
| 1065 | destination: '/docs/tools-direct/modify-tool-behavior', |
| 1066 | permanent: true, |
| 1067 | }, |
| 1068 | { |
| 1069 | source: '/docs/toolkit-versions', |
| 1070 | destination: '/docs/tools-direct/toolkit-versioning', |
| 1071 | permanent: true, |
| 1072 | }, |
| 1073 | { |
| 1074 | source: '/docs/guides/managing-multiple-connected-accounts', |
| 1075 | destination: '/docs/authentication/managing-multiple-connected-accounts', |
| 1076 | permanent: true, |
| 1077 | }, |
| 1078 | { |
| 1079 | source: '/docs/guides/white-labeling-authentication', |
| 1080 | destination: '/docs/authentication/white-labeling-authentication', |
| 1081 | permanent: true, |
| 1082 | }, |
| 1083 | { |
| 1084 | source: '/docs/using-custom-auth-configuration', |
| 1085 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 1086 | permanent: true, |
| 1087 | }, |
| 1088 | { |
| 1089 | source: '/docs/guides/using-custom-auth-configuration', |
| 1090 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 1091 | permanent: true, |
| 1092 | }, |
| 1093 | { |
| 1094 | source: '/docs/google-sheets', |
| 1095 | destination: '/toolkits/googlesheets', |
| 1096 | permanent: true, |
| 1097 | }, |
| 1098 | { |
| 1099 | source: '/docs/asana', |
| 1100 | destination: '/toolkits/asana', |
| 1101 | permanent: true, |
| 1102 | }, |
| 1103 | { |
| 1104 | source: '/docs/ai-sdk/:path*', |
| 1105 | destination: '/docs/providers/vercel', |
| 1106 | permanent: true, |
| 1107 | }, |
| 1108 | { |
| 1109 | source: '/docs/tool-router/quick-start-deprecated', |
| 1110 | destination: '/docs/quickstart', |
| 1111 | permanent: true, |
| 1112 | }, |
| 1113 | // Old concept/auth paths (v1 docs) |
| 1114 | { |
| 1115 | source: '/concepts/:path*', |
| 1116 | destination: '/docs', |
| 1117 | permanent: true, |
| 1118 | }, |
| 1119 | // Guessed /auth slugs that have a real target page (DEVREL-330). |
| 1120 | // Must precede the /auth/:path* catch-all below. |
| 1121 | { |
| 1122 | source: '/auth/token-custody', |
| 1123 | destination: '/docs/security/token-custody', |
| 1124 | permanent: true, |
| 1125 | }, |
| 1126 | { |
| 1127 | source: '/auth/proxy-execute', |
| 1128 | destination: '/docs/extending-sessions/proxy-execute', |
| 1129 | permanent: true, |
| 1130 | }, |
| 1131 | { |
| 1132 | source: '/auth/:path*', |
| 1133 | destination: '/docs/authentication', |
| 1134 | permanent: true, |
| 1135 | }, |
| 1136 | { |
| 1137 | source: '/cryptokit/:path*', |
| 1138 | destination: '/examples', |
| 1139 | permanent: true, |
| 1140 | }, |
| 1141 | { |
| 1142 | source: '/browser-automation/:path*', |
| 1143 | destination: '/toolkits/browserless', |
| 1144 | permanent: true, |
| 1145 | }, |
| 1146 | { |
| 1147 | source: '/model-providers/:path*', |
| 1148 | destination: '/docs/providers', |
| 1149 | permanent: true, |
| 1150 | }, |
| 1151 | { |
| 1152 | source: '/providers', |
| 1153 | destination: '/docs/providers', |
| 1154 | permanent: true, |
| 1155 | }, |
| 1156 | // Old versioned API paths (v1, v-1, v3, v-3) |
| 1157 | { |
| 1158 | source: '/reference/api-reference/v1/:path*', |
| 1159 | destination: '/reference/api-reference', |
| 1160 | permanent: true, |
| 1161 | }, |
| 1162 | { |
| 1163 | source: '/reference/api-reference/v-1/:path*', |
| 1164 | destination: '/reference/api-reference', |
| 1165 | permanent: true, |
| 1166 | }, |
| 1167 | // Old reference section paths |
| 1168 | { |
| 1169 | source: '/reference/introduction', |
| 1170 | destination: '/reference', |
| 1171 | permanent: true, |
| 1172 | }, |
| 1173 | { |
| 1174 | source: '/reference/triggers', |
| 1175 | destination: '/reference/api-reference/triggers', |
| 1176 | permanent: true, |
| 1177 | }, |
| 1178 | { |
| 1179 | source: '/reference/v-1/:path*', |
| 1180 | destination: '/reference/api-reference', |
| 1181 | permanent: true, |
| 1182 | }, |
| 1183 | // Legacy /docs/white-labeling → sessions white-labeling page |
| 1184 | { |
| 1185 | source: '/docs/white-labeling', |
| 1186 | destination: '/docs/authentication/white-labeling-authentication', |
| 1187 | permanent: true, |
| 1188 | }, |
| 1189 | // Exact legacy entry points reported in DEVREL-304. Machine-readable |
| 1190 | // requests redirect to .md destinations rather than the HTML guides. |
| 1191 | { |
| 1192 | source: '/authentication/authentication-overview', |
| 1193 | destination: '/docs/authentication', |
| 1194 | permanent: true, |
| 1195 | }, |
| 1196 | { |
| 1197 | source: '/authentication/connected-accounts/overview', |
| 1198 | destination: '/docs/authentication/manually-authenticating', |
| 1199 | permanent: true, |
| 1200 | }, |
| 1201 | { |
| 1202 | source: '/llms.mdx/authentication/connected-accounts/overview', |
| 1203 | destination: '/docs/authentication/manually-authenticating.md', |
| 1204 | permanent: true, |
| 1205 | }, |
| 1206 | { |
| 1207 | source: '/llms.mdx/sessions/sessions-via-mcp', |
| 1208 | destination: '/docs/sessions-via-mcp.md', |
| 1209 | permanent: true, |
| 1210 | }, |
| 1211 | { |
| 1212 | source: '/docs/manually-authenticating.md', |
| 1213 | destination: '/docs/authentication/manually-authenticating.md', |
| 1214 | permanent: true, |
| 1215 | }, |
| 1216 | // Auth, security, and deployment paths coding agents guess while |
| 1217 | // evaluating Composio. Each source returned 404 in Gauge agent sessions. |
| 1218 | { |
| 1219 | source: '/docs/security', |
| 1220 | destination: '/docs/security/overview', |
| 1221 | permanent: true, |
| 1222 | }, |
| 1223 | { |
| 1224 | source: '/docs/security-and-compliance', |
| 1225 | destination: '/docs/security/overview', |
| 1226 | permanent: true, |
| 1227 | }, |
| 1228 | { |
| 1229 | source: '/guides/security', |
| 1230 | destination: '/docs/security/overview', |
| 1231 | permanent: true, |
| 1232 | }, |
| 1233 | { |
| 1234 | source: '/docs/:legacy(self-hosting|deployment)', |
| 1235 | destination: '/docs/security/token-custody#deployment-options', |
| 1236 | permanent: true, |
| 1237 | }, |
| 1238 | { |
| 1239 | source: '/docs/hosting/:path*', |
| 1240 | destination: '/docs/security/token-custody#deployment-options', |
| 1241 | permanent: true, |
| 1242 | }, |
| 1243 | { |
| 1244 | source: '/docs/:legacy(oauth|auth-overview|auth-integration|auth-and-connected-accounts|how-authentication-works)', |
| 1245 | destination: '/docs/authentication', |
| 1246 | permanent: true, |
| 1247 | }, |
| 1248 | { |
| 1249 | source: '/docs/auth/:path*', |
| 1250 | destination: '/docs/authentication', |
| 1251 | permanent: true, |
| 1252 | }, |
| 1253 | { |
| 1254 | source: '/docs/auth-management/:path*', |
| 1255 | destination: '/docs/authentication', |
| 1256 | permanent: true, |
| 1257 | }, |
| 1258 | { |
| 1259 | source: '/docs/authentication/:legacy(overview|introduction|intro)', |
| 1260 | destination: '/docs/authentication', |
| 1261 | permanent: true, |
| 1262 | }, |
| 1263 | { |
| 1264 | source: '/docs/:legacy(managed-auth|hosted-auth)', |
| 1265 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 1266 | permanent: true, |
| 1267 | }, |
| 1268 | { |
| 1269 | source: '/docs/authentication/managed-auth', |
| 1270 | destination: '/docs/authentication/custom-app-vs-managed-app', |
| 1271 | permanent: true, |
| 1272 | }, |
| 1273 | { |
| 1274 | source: '/docs/authentication/:legacy(connected-accounts|connected_accounts)', |
| 1275 | destination: '/docs/auth-configuration/connected-accounts', |
| 1276 | permanent: true, |
| 1277 | }, |
| 1278 | { |
| 1279 | source: '/docs/overview', |
| 1280 | destination: '/docs', |
| 1281 | permanent: true, |
| 1282 | }, |
| 1283 | { |
| 1284 | source: '/docs/sessions', |
| 1285 | destination: '/docs/configuring-sessions', |
| 1286 | permanent: true, |
| 1287 | }, |
| 1288 | { |
| 1289 | source: '/quickstart', |
| 1290 | destination: '/docs/quickstart', |
| 1291 | permanent: true, |
| 1292 | }, |
| 1293 | { |
| 1294 | source: '/cli', |
| 1295 | destination: '/docs/cli', |
| 1296 | permanent: true, |
| 1297 | }, |
| 1298 | // Framework, MCP, and Connect Link URLs agents guess from feature |
| 1299 | // names (DEVREL-330). Each source returned 404 in Gauge sessions. |
| 1300 | { |
| 1301 | source: '/docs/mastra', |
| 1302 | destination: '/docs/providers/mastra', |
| 1303 | permanent: true, |
| 1304 | }, |
| 1305 | { |
| 1306 | source: '/docs/vercel-ai-sdk', |
| 1307 | destination: '/docs/providers/vercel', |
| 1308 | permanent: true, |
| 1309 | }, |
| 1310 | { |
| 1311 | source: '/docs/integrations/vercel-ai-sdk', |
| 1312 | destination: '/docs/providers/vercel', |
| 1313 | permanent: true, |
| 1314 | }, |
| 1315 | { |
| 1316 | source: '/docs/:legacy(langchain|langgraph)', |
| 1317 | destination: '/docs/providers/langchain', |
| 1318 | permanent: true, |
| 1319 | }, |
| 1320 | { |
| 1321 | source: '/docs/providers/vercel-ai-sdk', |
| 1322 | destination: '/docs/providers/vercel', |
| 1323 | permanent: true, |
| 1324 | }, |
| 1325 | { |
| 1326 | source: '/providers/vercel-ai-sdk', |
| 1327 | destination: '/docs/providers/vercel', |
| 1328 | permanent: true, |
| 1329 | }, |
| 1330 | { |
| 1331 | source: '/docs/connect-links', |
| 1332 | destination: '/docs/authentication', |
| 1333 | permanent: true, |
| 1334 | }, |
| 1335 | { |
| 1336 | source: '/docs/mcp-auth', |
| 1337 | destination: '/docs/authentication/managed-auth-for-custom-tools', |
| 1338 | permanent: true, |
| 1339 | }, |
| 1340 | { |
| 1341 | source: '/docs/auth-tools/auth-on-mcp', |
| 1342 | destination: '/docs/authentication/managed-auth-for-custom-tools', |
| 1343 | permanent: true, |
| 1344 | }, |
| 1345 | { |
| 1346 | source: '/providers/mcp', |
| 1347 | destination: '/docs/single-toolkit-mcp', |
| 1348 | permanent: true, |
| 1349 | }, |
| 1350 | { |
| 1351 | source: '/docs/providers/mcp', |
| 1352 | destination: '/docs/single-toolkit-mcp', |
| 1353 | permanent: true, |
| 1354 | }, |
| 1355 | ]; |
| 1356 | }, |
| 1357 | }; |
| 1358 | |
| 1359 | // `withEve` mounts the Eve docs assistant (agent/) on same-origin /eve/v1/* |
| 1360 | // routes and runs the agent alongside the Next.js app in one Vercel deploy. |
| 1361 | // Requires Node 24+ (see package.json engines / .node-version). |
| 1362 | export default withEve(withMDX(config)); |