@devries-cameron20 / composio Mirror · read-only / commits / b16374fc9
Fork 0

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 22, 10:45 UTC

fix(docs): Add redirects for Fern operation ID 404s

Add redirects for old Fern API reference operation ID pages to their section index pages. These operation-specific pages (e.g., postToolRouterSession) don't exist in the new fumadocs structure - only index.mdx files exist for each section. Uses :operationId (single segment) pattern to avoid redirecting the working index pages while catching the broken operation ID URLs. From Datadog 404 monitoring: - /reference/api-reference/tool-router/postToolRouterSession → /reference/api-reference/tool-router - /reference/api-reference/triggers/postTriggerInstancesBySlugUpsert → /reference/api-reference/triggers - etc. Also adds redirects for old Fern SDK reference and example URLs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

sohamganatra committed Feb 3, 2026 at 10:03 UTC b16374fc9197336b332f12bfd1f295d9c8dcb41e
1 file changed +81
docs/next.config.mjs
+81
@@ -491,6 +491,87 @@ const config = {
491 destination: '/docs/providers/custom-providers/typescript',
492 permanent: true,
493 },
494 + // Old Fern API reference operation IDs (from Datadog 404 monitoring)
495 + // Use :operationId (single segment) to redirect operation pages to section index
496 + // e.g. /reference/api-reference/tool-router/postToolRouterSession → /reference/api-reference/tool-router
497 + {
498 + source: '/reference/api-reference/tool-router/:operationId',
499 + destination: '/reference/api-reference/tool-router',
500 + permanent: true,
501 + },
502 + {
503 + source: '/reference/api-reference/triggers/:operationId',
504 + destination: '/reference/api-reference/triggers',
505 + permanent: true,
506 + },
507 + {
508 + source: '/reference/api-reference/authentication/:operationId',
509 + destination: '/reference/api-reference/authentication',
510 + permanent: true,
511 + },
512 + {
513 + source: '/reference/api-reference/mcp/:operationId',
514 + destination: '/reference/api-reference/mcp',
515 + permanent: true,
516 + },
517 + {
518 + source: '/reference/api-reference/tools/:operationId',
519 + destination: '/reference/api-reference/tools',
520 + permanent: true,
521 + },
522 + {
523 + source: '/reference/api-reference/toolkits/:operationId',
524 + destination: '/reference/api-reference/toolkits',
525 + permanent: true,
526 + },
527 + {
528 + source: '/reference/api-reference/connected-accounts/:operationId',
529 + destination: '/reference/api-reference/connected-accounts',
530 + permanent: true,
531 + },
532 + {
533 + source: '/reference/api-reference/auth-configs/:operationId',
534 + destination: '/reference/api-reference/auth-configs',
535 + permanent: true,
536 + },
537 + // Old Fern v-3 paths (different hyphenation)
538 + {
539 + source: '/reference/v-3/:path*',
540 + destination: '/reference',
541 + permanent: true,
542 + },
543 + // Old Fern SDK reference URLs (no content exists at these paths)
544 + {
545 + source: '/type-script/:path*',
546 + destination: '/reference',
547 + permanent: true,
548 + },
549 + {
550 + source: '/sdk-reference/:path*',
551 + destination: '/reference',
552 + permanent: true,
553 + },
554 + {
555 + source: '/sdk/:path*',
556 + destination: '/reference',
557 + permanent: true,
558 + },
559 + {
560 + source: '/js-sdk/:path*',
561 + destination: '/reference',
562 + permanent: true,
563 + },
564 + {
565 + source: '/js/:path*',
566 + destination: '/reference',
567 + permanent: true,
568 + },
569 + // Old Fern example URLs
570 + {
571 + source: '/examples/combined/:path*',
572 + destination: '/examples',
573 + permanent: true,
574 + },
575 ];
576 },
577 };