@devries-cameron20 / composio-1 / commits / bd30e642c
Fork 0

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

debug: Add import test route

sohamganatra committed Jan 27, 2026 at 23:56 UTC bd30e642cc103b4c35ffde00871acc7be37965a8
1 file changed +35
docs/app/test-imports/route.ts new
+35
@@ -0,0 +1,35 @@
1 +// Test imports one by one to find the failing one
2 +export async function GET() {
3 + const errors: string[] = [];
4 +
5 + try {
6 + const { docs } = await import('fumadocs-mdx:collections/server');
7 + if (!docs) errors.push('docs is undefined');
8 + } catch (e) {
9 + errors.push(`fumadocs-mdx:collections/server: ${e instanceof Error ? e.message : String(e)}`);
10 + }
11 +
12 + try {
13 + const { loader } = await import('fumadocs-core/source');
14 + if (!loader) errors.push('loader is undefined');
15 + } catch (e) {
16 + errors.push(`fumadocs-core/source: ${e instanceof Error ? e.message : String(e)}`);
17 + }
18 +
19 + try {
20 + const { source } = await import('@/lib/source');
21 + if (!source) errors.push('source is undefined');
22 + } catch (e) {
23 + errors.push(`@/lib/source: ${e instanceof Error ? e.message : String(e)}`);
24 + }
25 +
26 + if (errors.length === 0) {
27 + return new Response('# All imports successful!\n\nNo errors found.', {
28 + headers: { 'Content-Type': 'text/markdown' },
29 + });
30 + }
31 +
32 + return new Response(`# Import Errors\n\n${errors.map(e => `- ${e}`).join('\n')}`, {
33 + headers: { 'Content-Type': 'text/markdown' },
34 + });
35 +}