feat: 60 s timeout for custom_generate endpoint
* increased timeout for custom_generate to 60 s * prevents many timeouts if wait_audio is set to true on Vercel * highest possible value to work in all Vercel tiers
This commit is contained in:
parent
cfa3e0ab7f
commit
b4704cd2b2
@ -2,6 +2,7 @@ import { NextResponse, NextRequest } from "next/server";
|
||||
import { sunoApi } from "@/lib/SunoApi";
|
||||
import { corsHeaders } from "@/lib/utils";
|
||||
|
||||
export const maxDuration = 60; // allow longer timeout for wait_audio == true
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
|
Loading…
Reference in New Issue
Block a user