572
destination: '/examples',
573
permanent: true,
574
},
575
+ // Old /docs/frameworks/* paths (now /docs/providers/*)
576
+ // e.g. /docs/frameworks/claude-code → /docs/providers/anthropic
577
+ {
578
+ source: '/docs/frameworks/claude-code',
579
+ destination: '/docs/providers/anthropic',
580
+ permanent: true,
581
+ },
582
+ {
583
+ source: '/docs/frameworks/claude',
584
+ destination: '/docs/providers/anthropic',
585
+ permanent: true,
586
+ },
587
+ {
588
+ source: '/docs/frameworks/:path*',
589
+ destination: '/docs/providers',
590
+ permanent: true,
591
+ },
592
+ {
593
+ source: '/frameworks/:path*',
594
+ destination: '/docs/providers',
595
+ permanent: true,
596
+ },
597
+ // Old /apps/* paths (now /toolkits/*)
598
+ {
599
+ source: '/apps',
600
+ destination: '/toolkits',
601
+ permanent: true,
602
+ },
603
+ {
604
+ source: '/apps/usecases/:path*',
605
+ destination: '/examples',
606
+ permanent: true,
607
+ },
608
+ {
609
+ source: '/apps/:path*',
610
+ destination: '/toolkits/:path*',
611
+ permanent: true,
612
+ },
613
+ // Tool router pages that still 404
614
+ {
615
+ source: '/tool-router/using-as-a-native-tool',
616
+ destination: '/docs/quickstart',
617
+ permanent: true,
618
+ },
619
+ {
620
+ source: '/tool-router/using-with-mcp-clients',
621
+ destination: '/docs/single-toolkit-mcp',
622
+ permanent: true,
623
+ },
624
+ {
625
+ source: '/tool-router/:path*',
626
+ destination: '/docs/quickstart',
627
+ permanent: true,
628
+ },
629
+ // Docs pages that moved (confirmed real 404s from Datadog)
630
+ {
631
+ source: '/docs/authenticating-users',
632
+ destination: '/docs/authenticating-users/in-chat-authentication',
633
+ permanent: true,
634
+ },
635
+ {
636
+ source: '/docs/introduction/intro',
637
+ destination: '/docs',
638
+ permanent: true,
639
+ },
640
+ {
641
+ source: '/docs/introduction/:path*',
642
+ destination: '/docs',
643
+ permanent: true,
644
+ },
645
+ {
646
+ source: '/docs/tools/modify/:path*',
647
+ destination: '/docs/tools-direct/modify-tool-behavior',
648
+ permanent: true,
649
+ },
650
+ {
651
+ source: '/docs/troubleshooting/overview',
652
+ destination: '/docs/troubleshooting',
653
+ permanent: true,
654
+ },
655
+ {
656
+ source: '/docs/mcp-overview',
657
+ destination: '/docs/single-toolkit-mcp',
658
+ permanent: true,
659
+ },
660
+ {
661
+ source: '/docs/what-is-mcp',
662
+ destination: '/docs/single-toolkit-mcp',
663
+ permanent: true,
664
+ },
665
+ {
666
+ source: '/docs/mcp-authentication',
667
+ destination: '/docs/authentication',
668
+ permanent: true,
669
+ },
670
+ {
671
+ source: '/docs/mcp-partner-api',
672
+ destination: '/docs/single-toolkit-mcp',
673
+ permanent: true,
674
+ },
675
+ {
676
+ source: '/docs/migration-guide/overview',
677
+ destination: '/docs/migration-guide',
678
+ permanent: true,
679
+ },
680
+ {
681
+ source: '/docs/modifiers/:path*',
682
+ destination: '/docs/tools-direct/modify-tool-behavior',
683
+ permanent: true,
684
+ },
685
+ {
686
+ source: '/docs/toolkit-versions',
687
+ destination: '/docs/tools-direct/toolkit-versioning',
688
+ permanent: true,
689
+ },
690
+ {
691
+ source: '/docs/guides/managing-multiple-connected-accounts',
692
+ destination: '/docs/managing-multiple-connected-accounts',
693
+ permanent: true,
694
+ },
695
+ {
696
+ source: '/docs/guides/white-labeling-authentication',
697
+ destination: '/docs/white-labeling-authentication',
698
+ permanent: true,
699
+ },
700
+ {
701
+ source: '/docs/guides/using-custom-auth-configuration',
702
+ destination: '/docs/using-custom-auth-configuration',
703
+ permanent: true,
704
+ },
705
+ {
706
+ source: '/docs/guides/:path*',
707
+ destination: '/docs',
708
+ permanent: true,
709
+ },
710
+ {
711
+ source: '/docs/google-sheets',
712
+ destination: '/toolkits/googlesheets',
713
+ permanent: true,
714
+ },
715
+ {
716
+ source: '/docs/asana',
717
+ destination: '/toolkits/asana',
718
+ permanent: true,
719
+ },
720
+ {
721
+ source: '/docs/ai-sdk/:path*',
722
+ destination: '/docs/providers',
723
+ permanent: true,
724
+ },
725
+ {
726
+ source: '/docs/tool-router/quick-start-deprecated',
727
+ destination: '/docs/quickstart',
728
+ permanent: true,
729
+ },
730
+ // Old concept/auth paths (v1 docs)
731
+ {
732
+ source: '/concepts/:path*',
733
+ destination: '/docs',
734
+ permanent: true,
735
+ },
736
+ {
737
+ source: '/auth/:path*',
738
+ destination: '/docs/authentication',
739
+ permanent: true,
740
+ },
741
+ {
742
+ source: '/cryptokit/:path*',
743
+ destination: '/examples',
744
+ permanent: true,
745
+ },
746
+ {
747
+ source: '/browser-automation/:path*',
748
+ destination: '/toolkits/browserless',
749
+ permanent: true,
750
+ },
751
+ {
752
+ source: '/model-providers/:path*',
753
+ destination: '/docs/providers',
754
+ permanent: true,
755
+ },
756
+ {
757
+ source: '/providers',
758
+ destination: '/docs/providers',
759
+ permanent: true,
760
+ },
761
+ // Old API reference paths that still 404
762
+ {
763
+ source: '/reference/api-reference/apps/:operationId',
764
+ destination: '/reference/api-reference/apps',
765
+ permanent: true,
766
+ },
767
+ {
768
+ source: '/reference/api-reference/connections/:operationId',
769
+ destination: '/reference/api-reference/connections',
770
+ permanent: true,
771
+ },
772
+ {
773
+ source: '/reference/api-reference/api-keys/:operationId',
774
+ destination: '/reference/api-reference/api-keys',
775
+ permanent: true,
776
+ },
777
+ {
778
+ source: '/reference/api-reference/integrations/:operationId',
779
+ destination: '/reference/api-reference/integrations',
780
+ permanent: true,
781
+ },
782
+ {
783
+ source: '/reference/api-reference/projects/:operationId',
784
+ destination: '/reference/api-reference/projects',
785
+ permanent: true,
786
+ },
787
+ {
788
+ source: '/reference/api-reference/team/:operationId',
789
+ destination: '/reference/api-reference/team',
790
+ permanent: true,
791
+ },
792
+ {
793
+ source: '/reference/api-reference/logs/:operationId',
794
+ destination: '/reference/api-reference/logs',
795
+ permanent: true,
796
+ },
797
+ {
798
+ source: '/reference/api-reference/actions/:operationId',
799
+ destination: '/reference/api-reference/actions',
800
+ permanent: true,
801
+ },
802
+ {
803
+ source: '/reference/api-reference/files/:operationId',
804
+ destination: '/reference/api-reference/files',
805
+ permanent: true,
806
+ },
807
+ {
808
+ source: '/reference/api-reference/client/:operationId',
809
+ destination: '/reference/api-reference',
810
+ permanent: true,
811
+ },
812
+ {
813
+ source: '/reference/api-reference/client-auth/:operationId',
814
+ destination: '/reference/api-reference/authentication',
815
+ permanent: true,
816
+ },
817
+ {
818
+ source: '/reference/api-reference/auth/:operationId',
819
+ destination: '/reference/api-reference/authentication',
820
+ permanent: true,
821
+ },
822
+ {
823
+ source: '/reference/api-reference/health/:operationId',
824
+ destination: '/reference/api-reference',
825
+ permanent: true,
826
+ },
827
+ {
828
+ source: '/reference/api-reference/analytics/:operationId',
829
+ destination: '/reference/api-reference',
830
+ permanent: true,
831
+ },
832
+ {
833
+ source: '/reference/api-reference/action-v-2-logs/:operationId',
834
+ destination: '/reference/api-reference',
835
+ permanent: true,
836
+ },
837
+ // Old versioned API paths (v1, v-1, v3, v-3)
838
+ {
839
+ source: '/reference/api-reference/v1/:path*',
840
+ destination: '/reference/api-reference',
841
+ permanent: true,
842
+ },
843
+ {
844
+ source: '/reference/api-reference/v-1/:path*',
845
+ destination: '/reference/api-reference',
846
+ permanent: true,
847
+ },
848
+ {
849
+ source: '/reference/api-reference/v3/:path*',
850
+ destination: '/reference/api-reference',
851
+ permanent: true,
852
+ },
853
+ {
854
+ source: '/reference/api-reference/connectedaccounts/:path*',
855
+ destination: '/reference/api-reference/connected-accounts',
856
+ permanent: true,
857
+ },
858
+ // Old reference section paths
859
+ {
860
+ source: '/reference/introduction',
861
+ destination: '/reference',
862
+ permanent: true,
863
+ },
864
+ {
865
+ source: '/reference/triggers',
866
+ destination: '/reference/api-reference/triggers',
867
+ permanent: true,
868
+ },
869
+ {
870
+ source: '/reference/connected-accounts/:path*',
871
+ destination: '/reference/api-reference/connected-accounts',
872
+ permanent: true,
873
+ },
874
+ {
875
+ source: '/reference/auth-configs/:path*',
876
+ destination: '/reference/api-reference/auth-configs',
877
+ permanent: true,
878
+ },
879
+ {
880
+ source: '/reference/app-connector/:path*',
881
+ destination: '/reference/api-reference',
882
+ permanent: true,
883
+ },
884
+ {
885
+ source: '/reference/v-1/:path*',
886
+ destination: '/reference/api-reference',
887
+ permanent: true,
888
+ },
889
];
890
},
891
};