Hi everyone,
I’m working on an Astro project deployed on Vercel and I’d like to set different function durations for specific routes (not just globally at the project level).
I’ve tried adding patterns under functions in vercel.json, for example:
{
"functions": {
"api/aps/models/**/report": {
"maxDuration": 60
}
}
}
But during the build I get errors like:
Error: The pattern “api/aps/models/**/report” defined in functions doesn’t match any Serverless Functions inside the api directory.
Learn More: Error List
I can set maxDuration at the project level without problems, but I haven’t figured out how to apply it per route in Astro.
Is there a way to configure per-route function durations in an Astro project, or is this currently unsupported?
Thanks in advance ![]()
