Skip to content

Commit c3884ad

Browse files
committed
timeout overrides
1 parent 3e2812f commit c3884ad

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/app/api/custom_generate/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { cookies } from 'next/headers';
33
import { DEFAULT_MODEL, sunoApi } from "@/lib/SunoApi";
44
import { corsHeaders } from "@/lib/utils";
55

6-
export const maxDuration = 60; // allow longer timeout for wait_audio == true
6+
export const maxDuration = 300;
77
export const dynamic = "force-dynamic";
88

99
export async function POST(req: NextRequest) {

src/app/api/generate/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import pino from 'pino';
66

77
const logger = pino();
88
export const dynamic = "force-dynamic";
9+
export const maxDuration = 300;
910

1011
export async function POST(req: NextRequest) {
1112
if (req.method === 'POST') {

vercel.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)