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: Add redirect for old Fern API reference URLs

Sushmithamalleshc84493d997e4
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index 496364cf2..0d43112f2 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -181,6 +181,14 @@ const config = {
destination: '/reference',
permanent: true,
},
+ // Old Fern API endpoint URLs with kebab-case operationIds
+ // e.g. /api-reference/tools/post-tools-execute-by-tool-slug
+ // proxy.ts handles kebab-to-camelCase conversion
+ {
+ source: '/api-reference/:tag/:operationId',
+ destination: '/reference/api-reference/:tag/:operationId',
+ permanent: true,
+ },
{
source: '/api-reference/:path*',
destination: '/reference/:path*',