Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

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

sohamganatrab16374fc9197
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index 0d43112f2..e66f5e759 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -491,6 +491,87 @@ const config = {
destination: '/docs/providers/custom-providers/typescript',
permanent: true,
},
+ // Old Fern API reference operation IDs (from Datadog 404 monitoring)
+ // Use :operationId (single segment) to redirect operation pages to section index
+ // e.g. /reference/api-reference/tool-router/postToolRouterSession → /reference/api-reference/tool-router
+ {
+ source: '/reference/api-reference/tool-router/:operationId',
+ destination: '/reference/api-reference/tool-router',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/triggers/:operationId',
+ destination: '/reference/api-reference/triggers',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/authentication/:operationId',
+ destination: '/reference/api-reference/authentication',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/mcp/:operationId',
+ destination: '/reference/api-reference/mcp',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/tools/:operationId',
+ destination: '/reference/api-reference/tools',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/toolkits/:operationId',
+ destination: '/reference/api-reference/toolkits',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/connected-accounts/:operationId',
+ destination: '/reference/api-reference/connected-accounts',
+ permanent: true,
+ },
+ {
+ source: '/reference/api-reference/auth-configs/:operationId',
+ destination: '/reference/api-reference/auth-configs',
+ permanent: true,
+ },
+ // Old Fern v-3 paths (different hyphenation)
+ {
+ source: '/reference/v-3/:path*',
+ destination: '/reference',
+ permanent: true,
+ },
+ // Old Fern SDK reference URLs (no content exists at these paths)
+ {
+ source: '/type-script/:path*',
+ destination: '/reference',
+ permanent: true,
+ },
+ {
+ source: '/sdk-reference/:path*',
+ destination: '/reference',
+ permanent: true,
+ },
+ {
+ source: '/sdk/:path*',
+ destination: '/reference',
+ permanent: true,
+ },
+ {
+ source: '/js-sdk/:path*',
+ destination: '/reference',
+ permanent: true,
+ },
+ {
+ source: '/js/:path*',
+ destination: '/reference',
+ permanent: true,
+ },
+ // Old Fern example URLs
+ {
+ source: '/examples/combined/:path*',
+ destination: '/examples',
+ permanent: true,
+ },
];
},
};