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:
parent
0d7a8e4696
commit
aff28c4de9
2 changed files with 2 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue