From aff28c4de94c0314a0edb229fe470d02ea37db05 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Sat, 29 Nov 2025 14:34:14 +1000 Subject: [PATCH] fix(api): add maxDuration to tool detail endpoints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add maxDuration = 60 to /api/tools/[slug] route - Add maxDuration = 60 to /api/tools/[id] route - Prevents timeout on Prisma cold start for individual tool queries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/src/app/api/tools/[id]/route.ts | 1 + apps/web/src/app/api/tools/[slug]/route.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/web/src/app/api/tools/[id]/route.ts b/apps/web/src/app/api/tools/[id]/route.ts index 858d87a..b9e38e4 100644 --- a/apps/web/src/app/api/tools/[id]/route.ts +++ b/apps/web/src/app/api/tools/[id]/route.ts @@ -3,6 +3,7 @@ import { type NextRequest, NextResponse } from 'next/server'; export const runtime = 'nodejs'; export const dynamic = 'force-dynamic'; +export const maxDuration = 60; /** * GET /api/tools/[id] diff --git a/apps/web/src/app/api/tools/[slug]/route.ts b/apps/web/src/app/api/tools/[slug]/route.ts index 98acbe5..759cdea 100644 --- a/apps/web/src/app/api/tools/[slug]/route.ts +++ b/apps/web/src/app/api/tools/[slug]/route.ts @@ -3,6 +3,7 @@ import { type NextRequest, NextResponse } from 'next/server'; export const runtime = 'nodejs'; export const dynamic = 'force-dynamic'; +export const maxDuration = 60; /** * GET /api/tools/[slug]