Skip to content

Commit 9479721

Browse files
authored
presets(vercel): support max value on maxDuration types (#4172)
1 parent 55f30f4 commit 9479721

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/presets/vercel/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ export interface VercelServerlessFunctionConfig {
7070
architecture?: "x86_64" | "arm64";
7171

7272
/**
73-
* Maximum execution duration (in seconds) that will be allowed for the Serverless Function.
73+
* Maximum execution duration (in seconds) that will be allowed for the Serverless Function. `max` automatically sets the duration to the maximum allowed value.
7474
*/
75-
maxDuration?: number;
75+
maxDuration?: number | "max";
7676

7777
/**
7878
* Map of additional environment variables that will be available to the Vercel Function,

0 commit comments

Comments
 (0)