@devries-cameron20 / composio Mirror · read-only / commits / e82950797
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 14:30 UTC

refactor(docs): migrate middleware.ts to proxy.ts for Next.js 16

Next.js 16 deprecated the "middleware" file convention in favor of "proxy". Renamed file and function accordingly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 19, 2026 at 17:33 UTC e82950797815383acda37eba6b4bf13d2c20bb95
1 file changed +1 -1
docs/proxy.ts renamed
+1 -1
@@ -4,7 +4,7 @@ import { NextRequest, NextResponse } from 'next/server';
4 * Serves markdown when AI agents request it via Accept: text/markdown header.
5 * Test: curl -H "Accept: text/markdown" http://localhost:3000/docs/quickstart
6 */
7 -export function middleware(request: NextRequest) {
7 +export function proxy(request: NextRequest) {
8 const accept = request.headers.get('accept') || '';
9
10 if (accept.includes('text/markdown') || accept.includes('text/plain')) {