[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# The value for maxDuration must be between 1 second and 60 seconds

112 views · 4 likes · 4 posts


Hughestech (@hughestech) · 2024-07-24

Hello

I'm trying to setup a new project. It uses the same git repo as another project in my account. 

When I finish setting it up, and click "Deploy" I get a read toast error that says "The value for maxDuration must be between 1 second and 60 seconds". I then disappears. 

I'm not setting any values for `maxDuration`. I dont even know what this is referring to.

But, even after this message disappears, and even after I push a commit, no deployment happens.

What can I do?

--- Update ---
I've tried adding a `verce.json` file to the root. In this file I've set `"maxDuration": 60,`. Done git commit and push.

Still no build :frowning:


Florentin Eckl (@ecklf) · 2024-07-24 · ♥ 1

Hey there, from what I can see you are trying to deploy a fork of a project? When I go to the GitHub repo of said project they seem to be setting `maxDuration` to 150. Might be worth double checking.


Hughestech (@hughestech) · 2024-07-24 · ♥ 1

[quote="ecklf, post:2, topic:289"]
`maxDuration`
[/quote]

Thank you @ecklf !

I've done a search in the forked repo for `maxDuration` - and I do find references to it in README files, but cannot set it being set anywhere. 

Anyway, I've added a `vercel.json` file in the relevant sub directory and pushed it. 

Build looks to be queued... ...looks good so far.


Florentin Eckl (@ecklf) · 2024-07-24 · ♥ 2

Yeah it didn't seem like your builds were failing, which they should have if `maxDuration` is outside of your plans limits.

For reference this is the file I found in the repo:
https://github.com/baptisteArno/typebot.io/blob/09277c264c02bbbcd89c58fd8592955b85e376a8/apps/viewer/vercel.json#L4