Merge pull request #86 from jonico/patch-1
feat: 60 s timeout for custom_generate endpoint to give more time for synchronous song creation on Vercel deployments
This commit is contained in:
		
						commit
						9ebcfc48fb
					
				@ -2,6 +2,7 @@ import { NextResponse, NextRequest } from "next/server";
 | 
				
			|||||||
import { sunoApi } from "@/lib/SunoApi";
 | 
					import { sunoApi } from "@/lib/SunoApi";
 | 
				
			||||||
import { corsHeaders } from "@/lib/utils";
 | 
					import { corsHeaders } from "@/lib/utils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const maxDuration = 60; // allow longer timeout for wait_audio == true
 | 
				
			||||||
export const dynamic = "force-dynamic";
 | 
					export const dynamic = "force-dynamic";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export async function POST(req: NextRequest) {
 | 
					export async function POST(req: NextRequest) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user