fix(api): add maxDuration to tool detail endpoints

- 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 <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2025-11-29 14:34:14 +10:00
parent 0d7a8e4696
commit aff28c4de9
2 changed files with 2 additions and 0 deletions

View file

@ -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]

View file

@ -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]