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
};