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): Use absolute path for openapi.json to fix 500 on /reference pages

sohamganatrad9e448fac378
diff --git a/docs/lib/openapi.ts b/docs/lib/openapi.ts
index 6e16303b8..880a4d1f7 100644
--- a/docs/lib/openapi.ts
+++ b/docs/lib/openapi.ts
@@ -1,8 +1,10 @@
+import { join } from 'path';
import { createOpenAPI } from 'fumadocs-openapi/server';
// Use local filtered spec (generated by scripts/fetch-openapi.ts)
// Run `bun run scripts/fetch-openapi.ts` to update the spec
+// Use absolute path to ensure resolution in Vercel serverless functions
export const openapi = createOpenAPI({
- input: ['./public/openapi.json'],
+ input: [join(process.cwd(), 'public/openapi.json')],
proxyUrl: '/api/proxy',
});