fix: attempt fixing timeout

This commit is contained in:
bennykok 2024-01-27 12:48:37 +08:00
parent fe8f5a49ff
commit 5eba792579
2 changed files with 7 additions and 2 deletions

View File

@ -17,8 +17,6 @@ import "server-only";
import { v4 } from "uuid"; import { v4 } from "uuid";
import { withServerPromise } from "./withServerPromise"; import { withServerPromise } from "./withServerPromise";
export const maxDuration = 300; // 5 minutes
export const createRun = withServerPromise( export const createRun = withServerPromise(
async ({ async ({
origin, origin,

7
web/vercel.json Normal file
View File

@ -0,0 +1,7 @@
{
"functions": {
"src/app/**/*": {
"maxDuration": 300
}
}
}